You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
ReactOrganizer/model/Subject.js

88 lines
1.8 KiB

/**
* 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 <code>Subject</code>.
* @alias module:model/Subject
* @class
*/
constructor() {
}
/**
* Constructs a <code>Subject</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> 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 <code>Subject</code> 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;
}