argos/dmp-frontend/src/app/models/researcher/ResearcherModel.ts

17 lines
370 B
TypeScript
Raw Normal View History

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