parseMapStringDynamic static method
Implementation
static Map<String, dynamic> parseMapStringDynamic(
dynamic data, Map<String, dynamic> defaultValue) {
if (data == null) {
return defaultValue;
}
try {
Map<String, dynamic> map = data.cast<String, dynamic>();
return map;
} catch (e) {
return defaultValue;
}
}