canParse static method
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;
}