canParse static method

bool canParse(
  1. Object? obj
)

Implementation

static bool canParse(Object? obj) {
  if (obj is! Map<String, dynamic>) {
    return false;
  }
  if (obj['addressRange'] is! String?) {
    return false;
  }
  if (obj['dateTimeStamp'] is! String?) {
    return false;
  }
  if ((obj['id'] is! int && obj['id'] is! String)) {
    return false;
  }
  if (obj['isOptimized'] is! bool?) {
    return false;
  }
  if (obj['isUserCode'] is! bool?) {
    return false;
  }
  if (obj['name'] is! String) {
    return false;
  }
  if (obj['path'] is! String?) {
    return false;
  }
  if (obj['symbolFilePath'] is! String?) {
    return false;
  }
  if (obj['symbolStatus'] is! String?) {
    return false;
  }
  if (obj['version'] is! String?) {
    return false;
  }
  return true;
}