Added optional on variable models to avoid breaking changes (#6328)

Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>
This commit is contained in:
Vito
2020-11-06 15:59:47 +00:00
committed by GitHub
parent f918d9ee26
commit dab85c0c43
2 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@
*/ */
export class TaskProcessVariableModel { export class TaskProcessVariableModel {
id: string; id?: string;
type: string; type?: string;
value: string; value: string;
} }

View File

@@ -18,8 +18,8 @@
export class TaskVariableCloud { export class TaskVariableCloud {
name: string; name: string;
value: any; value: any;
type: string; type?: string;
id: string; id?: string;
constructor(obj) { constructor(obj) {
this.id = obj.name || null; this.id = obj.name || null;
this.name = obj.name || null; this.name = obj.name || null;