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['isLocalProcess'] is! bool?) {
    return false;
  }
  if (obj['name'] is! String) {
    return false;
  }
  if (obj['pointerSize'] is! int?) {
    return false;
  }
  if (obj['startMethod'] is! String?) {
    return false;
  }
  if (obj['systemProcessId'] is! int?) {
    return false;
  }
  return EventBody.canParse(obj);
}