toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final connectionRefusedCount = this.connectionRefusedCount;
  final hTTPCode4XXCount = this.hTTPCode4XXCount;
  final hTTPCode5XXCount = this.hTTPCode5XXCount;
  final otherCount = this.otherCount;
  final timeoutCount = this.timeoutCount;
  final unknownHostCount = this.unknownHostCount;
  return {
    if (connectionRefusedCount != null)
      'ConnectionRefusedCount': connectionRefusedCount,
    if (hTTPCode4XXCount != null) 'HTTPCode4XXCount': hTTPCode4XXCount,
    if (hTTPCode5XXCount != null) 'HTTPCode5XXCount': hTTPCode5XXCount,
    if (otherCount != null) 'OtherCount': otherCount,
    if (timeoutCount != null) 'TimeoutCount': timeoutCount,
    if (unknownHostCount != null) 'UnknownHostCount': unknownHostCount,
  };
}