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['adapterID'] is! String) {
    return false;
  }
  if (obj['clientID'] is! String?) {
    return false;
  }
  if (obj['clientName'] is! String?) {
    return false;
  }
  if (obj['columnsStartAt1'] is! bool?) {
    return false;
  }
  if (obj['linesStartAt1'] is! bool?) {
    return false;
  }
  if (obj['locale'] is! String?) {
    return false;
  }
  if (obj['pathFormat'] is! String?) {
    return false;
  }
  if (obj['supportsArgsCanBeInterpretedByShell'] is! bool?) {
    return false;
  }
  if (obj['supportsInvalidatedEvent'] is! bool?) {
    return false;
  }
  if (obj['supportsMemoryEvent'] is! bool?) {
    return false;
  }
  if (obj['supportsMemoryReferences'] is! bool?) {
    return false;
  }
  if (obj['supportsProgressReporting'] is! bool?) {
    return false;
  }
  if (obj['supportsRunInTerminalRequest'] is! bool?) {
    return false;
  }
  if (obj['supportsStartDebuggingRequest'] is! bool?) {
    return false;
  }
  if (obj['supportsVariablePaging'] is! bool?) {
    return false;
  }
  if (obj['supportsVariableType'] is! bool?) {
    return false;
  }
  return RequestArguments.canParse(obj);
}