Serializes a RuntimeArgs object to a byte array or an object representation.
This function converts the RuntimeArgs (or Args) object into a serialized format.
If asNamed is set to true, the serialized arguments are wrapped in a Named property
for more structured output. Otherwise, the plain array of serialized arguments is returned.
Returns
A serialized representation of the runtime arguments.
If asNamed is true, the output is an object with a Named property. Otherwise, it is a plain array.
Serializes a
RuntimeArgsobject to a byte array or an object representation.This function converts the
RuntimeArgs(orArgs) object into a serialized format. IfasNamedis set totrue, the serialized arguments are wrapped in aNamedproperty for more structured output. Otherwise, the plain array of serialized arguments is returned.Returns
A serialized representation of the runtime arguments. If
asNamedistrue, the output is an object with aNamedproperty. Otherwise, it is a plain array.