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

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

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like