18 lines
414 B
TypeScript
18 lines
414 B
TypeScript
import { Serializable } from '../Serializable';
|
|
|
|
|
|
export class OrganisationModel implements Serializable<OrganisationModel> {
|
|
public id: String;
|
|
public name: String;
|
|
public description: String;
|
|
public reference: String;
|
|
|
|
fromJSONObject(item: any): OrganisationModel {
|
|
this.id = item.id;
|
|
this.name = item.name;
|
|
this.description = item.abbreviation;
|
|
this.reference = item.reference;
|
|
return this;
|
|
}
|
|
}
|