toJson method
Implementation
Map<String, dynamic> toJson() => <String, Object?>{
'scriptIndex': scriptIndex ?? -1,
'startPos': startPos ?? -1,
'endPos': endPos ?? -1,
'compiled': compiled ?? false,
if (error?.toJson() case final errorValue?) 'error': errorValue,
if (coverage?.toJson() case final coverageValue?)
'coverage': coverageValue,
if (possibleBreakpoints?.map((f) => f).toList()
case final possibleBreakpointsValue?)
'possibleBreakpoints': possibleBreakpointsValue,
if (branchCoverage?.toJson() case final branchCoverageValue?)
'branchCoverage': branchCoverageValue,
};