jsonDecoder static method
Parses a JSON-encoded string into a Dart object.
This method uses jsonDecode to convert the data
string from JSON format into
a Dart object. The structure of the returned object depends on the contents of
the JSON string.
data
is the JSON string to be decoded.
Returns a dynamic object representing the parsed JSON data.
Implementation
static dynamic jsonDecoder(String data) {
final map = jsonDecode(
data,
reviver: _jsonEncodelEvent,
);
return _normalizeMapKeys(map);
}