17 lines
370 B
TypeScript
17 lines
370 B
TypeScript
import { Serializable } from "../Serializable";
|
|
|
|
export class ResearcherModel implements Serializable<ResearcherModel> {
|
|
public id: String;
|
|
public name: String;
|
|
public uri: String;
|
|
public email: String;
|
|
|
|
fromJSONObject(item: any): ResearcherModel {
|
|
this.id = item.id;
|
|
this.name = item.name;
|
|
this.email = item.email;
|
|
this.uri = item.uri;
|
|
|
|
return this;
|
|
}
|
|
} |