canParse static method

bool canParse(
  1. Object? obj
)

Implementation

static bool canParse(Object? obj) {
  if (obj is! Map<String, dynamic>) {
    return false;
  }
  if (obj['breakMode'] is! ExceptionBreakMode) {
    return false;
  }
  if (obj['description'] is! String?) {
    return false;
  }
  if (!ExceptionDetails.canParse(obj['details'])) {
    return false;
  }
  if (obj['exceptionId'] is! String) {
    return false;
  }
  return true;
}