toObject
Description
Input / Parameter
Name
Description
Input Type
Default
Options
Required
Output
Description
Output Type
Example
Step
Result
Last updated
Creates an object using the key-value pairs provided or creates a new object.
{Dynamic}
{Based on user inputs.}
Any
-
-
No
Note: Dynamic input means that user can add the necessary input required as key-value pairs.
Returns the new object with the passed data.
Object
In this example, we will create an object and print the result in the console.
Call the function Conversion.toObject inside the Log.write function.
Create the parameter(s) as required inside the Conversion.toObject and enter the value(s) for each parameter. In this example, we will create 2 parameters, 'name' and 'age' and enter the values {name: John, age: 27}.

The console will print an object as depicted below.

Last updated