blob: 4b22b8d91bfa011a583f20056ed46d126079e37c [file] [log] [blame]
export interface NodeModelResponseInterface {
name: string;
version: string;
description: string;
category: string;
uuid: string;
invariantUuid: string;
}
export class NodeModel {
name: string;
version: string;
description: string;
category: string;
uuid: string;
invariantUuid: string;
constructor(serviceJson?: NodeModelResponseInterface) {
if (serviceJson) {
this.name = serviceJson.name;
this.version = serviceJson.version;
this.description = serviceJson.description;
this.category = serviceJson.category;
this.uuid = serviceJson.uuid;
this.invariantUuid = serviceJson.invariantUuid;
}
}
}