argos/dmp-frontend/src/app/models/files/ContentFile.ts

16 lines
440 B
TypeScript

import { Serializable } from "../../models/Serializable";
export class ContentFile implements Serializable<ContentFile>{
private filename: string;
private id: string;
private location: string;
private type: string;
fromJSONObject(item: any): ContentFile {
this.filename = item.filename;
this.id = item.id;
this.location = item.location
this.type = item.type
return this;
}
}