/** * 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 ISoftReference { id: string; version?: number; } export class SoftReference extends BaseModel implements ISoftReference { static ID_FIELD_NAME = 'id'; static VERSION_FIELD_NAME = 'version'; id: string; version: number; /** * constructor * @param values Can be used to set a webapi response or formValues to this newly constructed model */ constructor(values?: Partial) { super(); 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.id = this.getValue(rawValues, SoftReference.ID_FIELD_NAME); this.version = this.getValue(rawValues, SoftReference.VERSION_FIELD_NAME); } } }