toMap static method
Converts JSON string into map object or returns empty map when conversion is not possible.
value
the JSON string to convert. Returns Map object value or empty object when conversion is not supported.
See toNullableMap
Implementation
static Map<String, dynamic> toMap(String value) {
var result = JsonConverter.toNullableMap(value);
return result ?? <String, dynamic>{};
}