argos/dmp-frontend/src/app/models/profile/ProfileModel.ts

19 lines
403 B
TypeScript
Raw Normal View History

2018-10-05 17:00:54 +02:00
import { Serializable } from '../Serializable';
2017-12-20 17:50:16 +01:00
export class ProfileModel implements Serializable<ProfileModel> {
public id: String;
2017-12-22 09:31:05 +01:00
public label: String;
2017-12-20 17:50:16 +01:00
public description: String;
public reference: String;
fromJSONObject(item: any): ProfileModel {
this.id = item.id;
2017-12-22 09:31:05 +01:00
this.label = item.label;
2017-12-20 17:50:16 +01:00
this.description = item.abbreviation;
this.reference = item.reference;
return this;
}
2018-10-05 17:00:54 +02:00
}