canParse static method

bool canParse(
  1. Object? obj
)

Implementation

static bool canParse(Object? obj) {
  if (obj is! Map<String, dynamic>) {
    return false;
  }
  if (obj['condition'] is! String?) {
    return false;
  }
  if (obj['hitCondition'] is! String?) {
    return false;
  }
  if (obj['instructionReference'] is! String) {
    return false;
  }
  if (obj['offset'] is! int?) {
    return false;
  }
  return true;
}