toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'callFrame': callFrame.toJson(),
    if (hitCount != null) 'hitCount': hitCount,
    if (children != null) 'children': [...?children],
    if (deoptReason != null) 'deoptReason': deoptReason,
    if (positionTicks != null)
      'positionTicks': positionTicks!.map((e) => e.toJson()).toList(),
  };
}