isValidObject static method
Check if the json
is a valid IsolateException.
Implementation
static bool isValidObject(dynamic json) {
try {
final decoded = jsonDecode(json.toString()) as Map;
return decoded.containsKey(r'$IsolateException');
} catch (_) {}
return false;
}