toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.tcp != null) {
    json[r'tcp'] = this.tcp;
  } else {
    json[r'tcp'] = null;
  }
  if (this.total != null) {
    json[r'total'] = this.total;
  } else {
    json[r'total'] = null;
  }
  return json;
}