blob: 4b22b8d91bfa011a583f20056ed46d126079e37c [file] [log] [blame]
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03001export interface NodeModelResponseInterface {
2 name: string;
3 version: string;
4 description: string;
5 category: string;
6 uuid: string;
7 invariantUuid: string;
8}
9
10export class NodeModel {
11 name: string;
12 version: string;
13 description: string;
14 category: string;
15 uuid: string;
16 invariantUuid: string;
17
18 constructor(serviceJson?: NodeModelResponseInterface) {
19 if (serviceJson) {
20 this.name = serviceJson.name;
21 this.version = serviceJson.version;
22 this.description = serviceJson.description;
23 this.category = serviceJson.category;
24 this.uuid = serviceJson.uuid;
25 this.invariantUuid = serviceJson.invariantUuid;
26 }
27 }
28
29}