/** * 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 IGoverningLawMasterData { countryName?: string; isoCode?: string; officialName?: string; subDivision?: string; subIsoCode?: string; value?: string; } export class GoverningLawMasterData extends BaseModel implements IGoverningLawMasterData { static COUNTRY_NAME_FIELD_NAME = 'countryName'; static ISO_CODE_FIELD_NAME = 'isoCode'; static OFFICIAL_NAME_FIELD_NAME = 'officialName'; static SUB_DIVISION_FIELD_NAME = 'subDivision'; static SUB_ISO_CODE_FIELD_NAME = 'subIsoCode'; static VALUE_FIELD_NAME = 'value'; countryName: string; isoCode: string; officialName: string; subDivision: string; subIsoCode: string; value: string; /** * 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.countryName = this.getValue(rawValues, GoverningLawMasterData.COUNTRY_NAME_FIELD_NAME); this.isoCode = this.getValue(rawValues, GoverningLawMasterData.ISO_CODE_FIELD_NAME); this.officialName = this.getValue(rawValues, GoverningLawMasterData.OFFICIAL_NAME_FIELD_NAME); this.subDivision = this.getValue(rawValues, GoverningLawMasterData.SUB_DIVISION_FIELD_NAME); this.subIsoCode = this.getValue(rawValues, GoverningLawMasterData.SUB_ISO_CODE_FIELD_NAME); this.value = this.getValue(rawValues, GoverningLawMasterData.VALUE_FIELD_NAME); } } }