/** * Organizer * Dies ist eine API, die es ermöglicht Daten zu Stunden-, Vertretungs-, oder Klausurplänen zu erhalten. * * OpenAPI spec version: 1.0.0 * Contact: info@jonasfranz.software * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. * */ import ApiClient from '../ApiClient'; /** * The Subject model module. * @module model/Subject * @version 1.0.0 */ export default class Subject { /** * Constructs a new Subject. * @alias module:model/Subject * @class */ constructor() { } /** * Constructs a Subject from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:model/Subject} obj Optional instance to populate. * @return {module:model/Subject} The populated Subject instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new Subject(); if (data.hasOwnProperty('abbreviation')) { obj['abbreviation'] = ApiClient.convertToType(data['abbreviation'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } } return obj; } /** * The abbreviation of the subject like LB for sports. * @member {String} abbreviation */ abbreviation = undefined; /** * @member {String} name */ name = undefined; schema = { name: "Subject", primaryKey: "abbreviation", properties: { abbreviation: {type: "string"}, name: {type: "string"} } } }