Catalog alignment
[sdc.git] / catalog-ui / src / app / models / graph / relationship.ts
index 8d56272..13a1bd1 100644 (file)
@@ -119,4 +119,11 @@ export class Relationship {
         this.capability = capability;
         this.requirement = requirement;
     };
+
+    public toJSON = ():any => {
+        let temp = angular.copy(this);
+        temp.capability = undefined;
+        temp.requirement = undefined;
+        return temp;
+    }
 }