canParse static method

bool canParse(
  1. Object? obj
)

Implementation

static bool canParse(Object? obj) {
  if (obj is! Map<String, dynamic>) {
    return false;
  }
  if ((obj['additionalModuleColumns'] is! List ||
      (obj['additionalModuleColumns']
          .any((item) => !ColumnDescriptor.canParse(item))))) {
    return false;
  }
  if ((obj['breakpointModes'] is! List ||
      (obj['breakpointModes']
          .any((item) => !BreakpointMode.canParse(item))))) {
    return false;
  }
  if ((obj['completionTriggerCharacters'] is! List ||
      (obj['completionTriggerCharacters'].any((item) => item is! String)))) {
    return false;
  }
  if ((obj['exceptionBreakpointFilters'] is! List ||
      (obj['exceptionBreakpointFilters']
          .any((item) => !ExceptionBreakpointsFilter.canParse(item))))) {
    return false;
  }
  if (obj['supportSuspendDebuggee'] is! bool?) {
    return false;
  }
  if (obj['supportTerminateDebuggee'] is! bool?) {
    return false;
  }
  if ((obj['supportedChecksumAlgorithms'] is! List ||
      (obj['supportedChecksumAlgorithms']
          .any((item) => item is! ChecksumAlgorithm)))) {
    return false;
  }
  if (obj['supportsANSIStyling'] is! bool?) {
    return false;
  }
  if (obj['supportsBreakpointLocationsRequest'] is! bool?) {
    return false;
  }
  if (obj['supportsCancelRequest'] is! bool?) {
    return false;
  }
  if (obj['supportsClipboardContext'] is! bool?) {
    return false;
  }
  if (obj['supportsCompletionsRequest'] is! bool?) {
    return false;
  }
  if (obj['supportsConditionalBreakpoints'] is! bool?) {
    return false;
  }
  if (obj['supportsConfigurationDoneRequest'] is! bool?) {
    return false;
  }
  if (obj['supportsDataBreakpointBytes'] is! bool?) {
    return false;
  }
  if (obj['supportsDataBreakpoints'] is! bool?) {
    return false;
  }
  if (obj['supportsDelayedStackTraceLoading'] is! bool?) {
    return false;
  }
  if (obj['supportsDisassembleRequest'] is! bool?) {
    return false;
  }
  if (obj['supportsEvaluateForHovers'] is! bool?) {
    return false;
  }
  if (obj['supportsExceptionFilterOptions'] is! bool?) {
    return false;
  }
  if (obj['supportsExceptionInfoRequest'] is! bool?) {
    return false;
  }
  if (obj['supportsExceptionOptions'] is! bool?) {
    return false;
  }
  if (obj['supportsFunctionBreakpoints'] is! bool?) {
    return false;
  }
  if (obj['supportsGotoTargetsRequest'] is! bool?) {
    return false;
  }
  if (obj['supportsHitConditionalBreakpoints'] is! bool?) {
    return false;
  }
  if (obj['supportsInstructionBreakpoints'] is! bool?) {
    return false;
  }
  if (obj['supportsLoadedSourcesRequest'] is! bool?) {
    return false;
  }
  if (obj['supportsLogPoints'] is! bool?) {
    return false;
  }
  if (obj['supportsModulesRequest'] is! bool?) {
    return false;
  }
  if (obj['supportsReadMemoryRequest'] is! bool?) {
    return false;
  }
  if (obj['supportsRestartFrame'] is! bool?) {
    return false;
  }
  if (obj['supportsRestartRequest'] is! bool?) {
    return false;
  }
  if (obj['supportsSetExpression'] is! bool?) {
    return false;
  }
  if (obj['supportsSetVariable'] is! bool?) {
    return false;
  }
  if (obj['supportsSingleThreadExecutionRequests'] is! bool?) {
    return false;
  }
  if (obj['supportsStepBack'] is! bool?) {
    return false;
  }
  if (obj['supportsStepInTargetsRequest'] is! bool?) {
    return false;
  }
  if (obj['supportsSteppingGranularity'] is! bool?) {
    return false;
  }
  if (obj['supportsTerminateRequest'] is! bool?) {
    return false;
  }
  if (obj['supportsTerminateThreadsRequest'] is! bool?) {
    return false;
  }
  if (obj['supportsValueFormattingOptions'] is! bool?) {
    return false;
  }
  if (obj['supportsWriteMemoryRequest'] is! bool?) {
    return false;
  }
  return true;
}