canParse static method
Implementation
static bool canParse(Object? obj) {
if (obj is! Map<String, dynamic>) {
return false;
}
if ((obj['breakpoints'] is! List ||
(obj['breakpoints'].any((item) => !SourceBreakpoint.canParse(item))))) {
return false;
}
if ((obj['lines'] is! List || (obj['lines'].any((item) => item is! int)))) {
return false;
}
if (!Source.canParse(obj['source'])) {
return false;
}
if (obj['sourceModified'] is! bool?) {
return false;
}
return RequestArguments.canParse(obj);
}