/** * This file is generated by the SwaggerTSGenerator. * Do not edit. */ /* tslint:disable */ import { BaseModel } from './base-model'; import { SubTypeFactory } from './sub-type-factory'; import { IFee, Fee } from './fee.model'; export interface IPremium extends IFee{ appliesToRisk?: string; } export class Premium extends Fee implements IPremium { static TYPE_SELECTOR = 'Premium'; static APPLIES_TO_RISK_FIELD_NAME = 'appliesToRisk'; appliesToRisk: 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 = Premium.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) { super.setValues(values) const rawValues = values this.appliesToRisk = this.getValue(rawValues, Premium.APPLIES_TO_RISK_FIELD_NAME); } } }