argos/dmp-frontend/src/app/models/data-managemnt-plans/DataManagementPlanListingMo...

26 lines
754 B
TypeScript
Raw Normal View History

2017-12-14 14:10:56 +01:00
import { Serializable } from "../Serializable";
2017-12-14 18:13:28 +01:00
export class DataManagementPlanListingModel implements Serializable<DataManagementPlanListingModel> {
2017-12-14 14:10:56 +01:00
public id: String;
public label: String;
2017-12-19 13:06:52 +01:00
public project: String;
public profile: String;
2018-02-02 12:09:38 +01:00
public creationTime: String;
2017-12-19 13:06:52 +01:00
public organisations: String;
2018-02-08 09:42:02 +01:00
public groupId: string;
2017-12-19 13:06:52 +01:00
public version: number;
2018-10-02 16:33:58 +02:00
public datasets: any[]
2017-12-14 18:13:28 +01:00
fromJSONObject(item: any): DataManagementPlanListingModel {
2017-12-14 14:10:56 +01:00
this.id = item.id;
this.label = item.label;
2017-12-19 13:06:52 +01:00
this.project = item.project;
this.profile = item.profile;
2018-02-02 12:09:38 +01:00
this.creationTime = item.creationTime;
2017-12-19 13:06:52 +01:00
this.organisations = item.organisations;
this.version = item.version;
2018-10-02 16:33:58 +02:00
this.groupId = item.groupId;
this.datasets = item.datasets;
2017-12-14 14:10:56 +01:00
return this;
}
2018-10-02 16:33:58 +02:00
}