Converts the Environment Variables from array to an object variable, making it easier to access through methods. It is not compatible with Environment Variables using the same keys.

Syntax
.env_to_obj(/environment/)

Arguments
Field name
Type
Description
environment
array
The array of objects containing key and value. Analysis sends it as context.environment .

Returns {Promise<JSON>}