canParse static method

bool canParse(
  1. Object? obj
)

Implementation

static bool canParse(Object? obj) {
  if (obj is! Map<String, dynamic>) {
    return false;
  }
  if ((obj['names'] is! List ||
      (obj['names'].any((item) => item is! String)))) {
    return false;
  }
  if (obj['negate'] is! bool?) {
    return false;
  }
  return true;
}