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
RuntimeArgs
object to a byte array or an object representation.This function converts the
RuntimeArgs
(orArgs
) object into a serialized format. IfasNamed
is set totrue
, the serialized arguments are wrapped in aNamed
property for more structured output. Otherwise, the plain array of serialized arguments is returned.Returns
A serialized representation of the runtime arguments. If
asNamed
istrue
, the output is an object with aNamed
property. Otherwise, it is a plain array.