2017-12-15 16:33:18 +01:00
|
|
|
import { Serializable } from "../Serializable";
|
|
|
|
|
|
|
|
export class DatasetListingModel implements Serializable<DatasetListingModel> {
|
|
|
|
public id: String;
|
2017-12-19 16:38:28 +01:00
|
|
|
public label:String;
|
|
|
|
public dmp: String;
|
|
|
|
public profile: String;
|
|
|
|
public dataRepositories: String;
|
|
|
|
public registries: String;
|
|
|
|
public services: String;
|
2017-12-18 12:26:13 +01:00
|
|
|
public description: String;
|
|
|
|
public status: Number;
|
|
|
|
public created: Date;
|
2017-12-19 16:38:28 +01:00
|
|
|
//public uri: String;
|
|
|
|
// public reference: String;
|
2017-12-15 16:33:18 +01:00
|
|
|
|
|
|
|
fromJSONObject(item: any): DatasetListingModel {
|
|
|
|
this.id = item.id;
|
|
|
|
this.label = item.label;
|
2017-12-19 16:38:28 +01:00
|
|
|
this.dmp = item.dmp;
|
|
|
|
this.profile = item.profile;
|
|
|
|
this.dataRepositories = item.dataRepositories;
|
|
|
|
this.registries = item.registries;
|
|
|
|
this.services = item.services;
|
|
|
|
//this.reference = item.reference;
|
|
|
|
//this.uri = item.uri;
|
2017-12-15 16:33:18 +01:00
|
|
|
this.status = item.status;
|
|
|
|
this.description = item.description;
|
2017-12-18 12:26:13 +01:00
|
|
|
this.created = item.created;
|
2017-12-15 16:33:18 +01:00
|
|
|
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
}
|