asMap function
Implementation
Map<String, dynamic> asMap(Map<String, dynamic>? json, String key,
{Map<String, dynamic>? defaultValue}) {
if (json == null || !json.containsKey(key)) {
return defaultValue ?? <String, dynamic>{};
}
return toMap(json[key]);
}