isJsonMap function
Returns true if the given content
is a JSON map.
isJsonMap({}); // true
isJsonMap([]); // false
isJsonMap(''); // false
Implementation
bool isJsonMap(dynamic content) {
return content is Map<String, dynamic>;
}
Returns true if the given content
is a JSON map.
isJsonMap({}); // true
isJsonMap([]); // false
isJsonMap(''); // false
bool isJsonMap(dynamic content) {
return content is Map<String, dynamic>;
}