canParse static method
Implementation
static bool canParse(Object? obj) {
if (obj is! Map<String, dynamic>) {
return false;
}
if (obj['id'] is! int) {
return false;
}
if (obj['name'] is! String) {
return false;
}
return true;
}