/** * This file is generated by the SwaggerTSGenerator. * Do not edit. */ /* tslint:disable */ import { BaseModel } from './base-model'; import { SubTypeFactory } from './sub-type-factory'; export interface IPeriod { end?: Date; start?: Date; typeSelector?: string; } export class Period extends BaseModel implements IPeriod { static TYPE_SELECTOR = 'Period'; static END_FIELD_NAME = 'end'; static START_FIELD_NAME = 'start'; static TYPE_SELECTOR_FIELD_NAME = 'typeSelector'; end: Date; start: Date; typeSelector: string; /** * constructor * @param values Can be used to set a webapi response or formValues to this newly constructed model */ constructor(values?: Partial) { super(); this.typeSelector = Period.TYPE_SELECTOR; if (values) { this.setValues(values); } } /** * set the values. * @param values Can be used to set a webapi response to this newly constructed model */ setValues(values: Partial): void { if (values) { const rawValues = values this.end = this.getValue(rawValues, Period.END_FIELD_NAME); this.start = this.getValue(rawValues, Period.START_FIELD_NAME); this.typeSelector = this.getValue(rawValues, Period.TYPE_SELECTOR_FIELD_NAME); } } }