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