To use this function add it to the class library file named PluginVCService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginVCService.ts
Description: Converts a Properties Object to an Array of VcOptionValue types.
Protected Function: ConvertPropertiesToVcOptionValueArray
protectedConvertPropertiesToVcOptionValueArray(objProperties:Properties):VcOptionValue[]{
letarrKey:String[]=objProperties.keys;
letarrVcOptionValue:VcOptionValue[]=arrKey.map((strKey:string):VcOptionValue=>{
letanyValue:any=objProperties.get(strKey);
letobjVcOptionValue:VcOptionValue=this.VcOptionValueCreate(strKey,anyValue);
returnobjVcOptionValue;
});
returnarrVcOptionValue;
}TypeScriptDiscover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
