isValidObject static method

bool isValidObject(
  1. dynamic json
)

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;
}