Converts value into map object or returns empty map when conversion is not possible
the value to convert.
map object or empty map when conversion is not supported.
Converts value into map object or returns default when conversion is not possible
the value to convert.
the default value.
map object or emptu map when conversion is not supported.
Converts value into map object or returns null when conversion is not possible.
the value to convert.
map object or null when conversion is not supported.
Generated using TypeDoc
Converts arbitrary values into map objects using extended conversion rules:
Example
let value1 = MapConverted.toNullableMap("ABC"); // Result: null let value2 = MapConverted.toNullableMap({ key: 123 }); // Result: { key: 123 } let value3 = MapConverted.toNullableMap([1,2,3]); // Result: { "0": 1, "1": 2, "2": 3 }