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['allowPartial'] is! bool?) {
    return false;
  }
  if (obj['data'] is! String) {
    return false;
  }
  if (obj['memoryReference'] is! String) {
    return false;
  }
  if (obj['offset'] is! int?) {
    return false;
  }
  return RequestArguments.canParse(obj);
}