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

18 lines
402 B
TypeScript
Raw Normal View History

2017-12-20 17:50:16 +01:00
import { Serializable } from "../Serializable";
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;
}
}