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['expensive'] is! bool) {
return false;
}
if (obj['indexedVariables'] is! int?) {
return false;
}
if (obj['line'] is! int?) {
return false;
}
if (obj['name'] is! String) {
return false;
}
if (obj['namedVariables'] is! int?) {
return false;
}
if (obj['presentationHint'] is! String?) {
return false;
}
if (!Source.canParse(obj['source'])) {
return false;
}
if (obj['variablesReference'] is! int) {
return false;
}
return true;
}