canParse static method

bool canParse(
  1. Object? obj
)
override

Implementation

static bool canParse(Object? obj) {
  if (obj is! Map<String, dynamic>) {
    return false;
  }
  if (obj['category'] is! String?) {
    return false;
  }
  if (obj['column'] is! int?) {
    return false;
  }
  if (obj['group'] is! String?) {
    return false;
  }
  if (obj['line'] is! int?) {
    return false;
  }
  if (obj['locationReference'] is! int?) {
    return false;
  }
  if (obj['output'] is! String) {
    return false;
  }
  if (!Source.canParse(obj['source'])) {
    return false;
  }
  if (obj['variablesReference'] is! int?) {
    return false;
  }
  return EventBody.canParse(obj);
}