ensureJsonDecodeToMap function

Map<String, dynamic> ensureJsonDecodeToMap(
  1. dynamic json
)

Implementation

Map<String, dynamic> ensureJsonDecodeToMap(dynamic json) {
  if (json is Map<String, dynamic>) return json;
  return convert.jsonDecode('$json');
}