toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final downloadSpeed = this.downloadSpeed;
  final uploadSpeed = this.uploadSpeed;
  return {
    if (downloadSpeed != null) 'DownloadSpeed': downloadSpeed,
    if (uploadSpeed != null) 'UploadSpeed': uploadSpeed,
  };
}