canParse static method

bool canParse(
  1. Object? obj
)
override

Implementation

static bool canParse(Object? obj) {
  if (obj is! Map<String, dynamic>) {
    return false;
  }
  if (!StackFrameFormat.canParse(obj['format'])) {
    return false;
  }
  if (obj['levels'] is! int?) {
    return false;
  }
  if (obj['startFrame'] is! int?) {
    return false;
  }
  if (obj['threadId'] is! int) {
    return false;
  }
  return RequestArguments.canParse(obj);
}