argos/dmp-frontend/src/app/models/organisation/OrganisationModel.ts

18 lines
414 B
TypeScript
Raw Normal View History

2017-12-19 08:31:02 +01:00
import { Serializable } from "../Serializable";
export class OrganisationModel implements Serializable<OrganisationModel> {
public id: String;
2017-12-20 14:34:32 +01:00
public name: String;
public description: String;
2017-12-19 08:31:02 +01:00
public reference: String;
fromJSONObject(item: any): OrganisationModel {
this.id = item.id;
2017-12-20 14:34:32 +01:00
this.name = item.name;
this.description = item.abbreviation;
2017-12-19 08:31:02 +01:00
this.reference = item.reference;
return this;
}
}