/** * This file is generated by the SwaggerTSGenerator. * Do not edit. */ /* tslint:disable */ import { BaseModel } from './base-model'; import { SubTypeFactory } from './sub-type-factory'; import { SortDirection } from './enums'; import { AccountItemSortProperty } from './enums'; export interface ISort { order?: SortDirection; property?: AccountItemSortProperty; } export class Sort extends BaseModel implements ISort { static ORDER_FIELD_NAME = 'order'; static PROPERTY_FIELD_NAME = 'property'; order: SortDirection; property: AccountItemSortProperty; /** * 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.order = this.getValue(rawValues, Sort.ORDER_FIELD_NAME); this.property = this.getValue(rawValues, Sort.PROPERTY_FIELD_NAME); } } }