+
+ this.deploymentMethodsSubmit = new Map<string, boolean>();
+ /// Set deployment method Map
+ for (const methods of this.deploymentMethodsSelect) {
+ this.deploymentMethodsSubmit.set(methods.value, false);
+ }
+
+ this.k8sclusterForm.value.deployment_methods.forEach((dm: string): void => {
+ this.deploymentMethodsSubmit.set(dm, true);
+ });
+ // Transform Map to json object
+ const jsonDMObject: {} = {};
+ this.deploymentMethodsSubmit.forEach((value: boolean, key: string): void => {
+ jsonDMObject[key] = value;
+ });
+
+ // Transform values to json
+ this.k8sclusterForm.value.deployment_methods = jsonDMObject;
+