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
protected ConvertPropertiesToVcOptionValueArray(objProperties: Properties): VcOptionValue[] {
let arrKey: String[] = objProperties.keys;
let arrVcOptionValue: VcOptionValue[] = arrKey.map((strKey: string): VcOptionValue => {
let anyValue: any = objProperties.get(strKey);
let objVcOptionValue: VcOptionValue = this.VcOptionValueCreate(strKey, anyValue);
return objVcOptionValue;
});
return arrVcOptionValue;
}TypeScriptDiscover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
