argos/dmp-frontend/src/app/models/projects/ProjectModel.ts

27 lines
724 B
TypeScript
Raw Normal View History

2017-12-14 14:10:56 +01:00
import { Serializable } from "../Serializable";
export class ProjectModel implements Serializable<ProjectModel> {
public id: String;
public label: String;
public abbreviation: String;
public reference: String;
public uri: String;
public status: String;
public startDate: Date;
public endDate: Date;
public description: String;
fromJSONObject(item: any): ProjectModel {
this.id = item.id;
this.label = item.label;
this.abbreviation = item.abbreviation;
this.reference = item.reference;
this.uri = item.uri;
this.status = item.status;
this.startDate = item.startDate;
this.endDate = item.endDate;
this.description = item.description;
return this;
}
}