Function: Convert Properties To VcOptionValue Array

by Simon Sparks · 22 March 2026

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;
}
TypeScript

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like