toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'from': from,
  'to': to,
  'sampleCount': sampleCount,
  'coverage': coverage.wire,
  'reasons': reasons.map((item) => item.wire).toList(),
  'counts': counts?.toJson(),
};