canParse static method
Implementation
static bool canParse(Object? obj) {
if (obj is! Map<String, dynamic>) {
return false;
}
if (obj['column'] is! int?) {
return false;
}
if (obj['endColumn'] is! int?) {
return false;
}
if (obj['endLine'] is! int?) {
return false;
}
if (obj['id'] is! int?) {
return false;
}
if (obj['instructionReference'] is! String?) {
return false;
}
if (obj['line'] is! int?) {
return false;
}
if (obj['message'] is! String?) {
return false;
}
if (obj['offset'] is! int?) {
return false;
}
if (obj['reason'] is! String?) {
return false;
}
if (!Source.canParse(obj['source'])) {
return false;
}
if (obj['verified'] is! bool) {
return false;
}
return true;
}