isMap function

bool isMap(
  1. String value
)

Checks if string is map.

Implementation

bool isMap(String value) {
  try {
    jsonDecode(value) as Map<String, dynamic>;
    return true;
  } on FormatException catch (_) {
    return false;
  }
}