summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/models')
-rw-r--r--catalog-ui/src/app/models/tosca-get-function.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/catalog-ui/src/app/models/tosca-get-function.ts b/catalog-ui/src/app/models/tosca-get-function.ts
index 0fe0831215..6d5642eaf1 100644
--- a/catalog-ui/src/app/models/tosca-get-function.ts
+++ b/catalog-ui/src/app/models/tosca-get-function.ts
@@ -30,4 +30,19 @@ export class ToscaGetFunction {
sourceName: string;
functionType: ToscaGetFunctionType;
propertyPathFromSource: Array<string>;
+
+ constructor(toscaGetFunction: ToscaGetFunction) {
+ if (!toscaGetFunction) {
+ return;
+ }
+ this.propertyUniqueId = toscaGetFunction.propertyUniqueId;
+ this.propertyName = toscaGetFunction.propertyName;
+ this.propertySource = toscaGetFunction.propertySource;
+ this.sourceUniqueId = toscaGetFunction.sourceUniqueId;
+ this.sourceName = toscaGetFunction.sourceName;
+ this.functionType = toscaGetFunction.functionType;
+ if (toscaGetFunction.propertyPathFromSource) {
+ this.propertyPathFromSource = [...toscaGetFunction.propertyPathFromSource];
+ }
+ }
} \ No newline at end of file