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['asAddress'] is! bool?) {
    return false;
  }
  if (obj['bytes'] is! int?) {
    return false;
  }
  if (obj['frameId'] is! int?) {
    return false;
  }
  if (obj['mode'] is! String?) {
    return false;
  }
  if (obj['name'] is! String) {
    return false;
  }
  if (obj['variablesReference'] is! int?) {
    return false;
  }
  return RequestArguments.canParse(obj);
}