/** * This file is generated by the SwaggerTSGenerator. * Do not edit. */ /* tslint:disable */ import { BaseModel } from './base-model'; import { SubTypeFactory } from './sub-type-factory'; import { ISoftReference, SoftReference } from './soft-reference.model'; export interface IBusinessNetwork { bno?: ISoftReference; description?: string; id?: string; members?: Array; name?: string; } export class BusinessNetwork extends BaseModel implements IBusinessNetwork { static BNO_FIELD_NAME = 'bno'; static DESCRIPTION_FIELD_NAME = 'description'; static ID_FIELD_NAME = 'id'; static MEMBERS_FIELD_NAME = 'members'; static NAME_FIELD_NAME = 'name'; bno: SoftReference; description: string; id: string; members: Array; name: string; /** * constructor * @param values Can be used to set a webapi response or formValues to this newly constructed model */ constructor(values?: Partial) { super(); this.bno = new SoftReference(); this.members = new Array(); 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.bno.setValues(rawValues.bno); this.description = this.getValue(rawValues, BusinessNetwork.DESCRIPTION_FIELD_NAME); this.id = this.getValue(rawValues, BusinessNetwork.ID_FIELD_NAME); this.fillModelArray(this, BusinessNetwork.MEMBERS_FIELD_NAME, rawValues.members, SoftReference, SubTypeFactory.createSubTypeInstance); this.name = this.getValue(rawValues, BusinessNetwork.NAME_FIELD_NAME); } } }