canParse static method

bool canParse(
  1. Object? obj
)

Implementation

static bool canParse(Object? obj) {
  if (obj is! Map<String, dynamic>) {
    return false;
  }
  if (obj['declarationLocationReference'] is! int?) {
    return false;
  }
  if (obj['evaluateName'] is! String?) {
    return false;
  }
  if (obj['indexedVariables'] is! int?) {
    return false;
  }
  if (obj['memoryReference'] is! String?) {
    return false;
  }
  if (obj['name'] is! String) {
    return false;
  }
  if (obj['namedVariables'] is! int?) {
    return false;
  }
  if (!VariablePresentationHint.canParse(obj['presentationHint'])) {
    return false;
  }
  if (obj['type'] is! String?) {
    return false;
  }
  if (obj['value'] is! String) {
    return false;
  }
  if (obj['valueLocationReference'] is! int?) {
    return false;
  }
  if (obj['variablesReference'] is! int) {
    return false;
  }
  return true;
}