toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (duration != null) {
_json[r'duration'] = duration;
}
if (rxBytes != null) {
_json[r'rx-bytes'] = rxBytes;
}
if (txBytes != null) {
_json[r'tx-bytes'] = txBytes;
}
if (attempts != null) {
_json[r'attempts'] = attempts;
}
if (failedAttempts != null) {
_json[r'failed-attempts'] = failedAttempts;
}
if (totalDuration != null) {
_json[r'total-duration'] = totalDuration;
}
if (totalRxBytes != null) {
_json[r'total-rx-bytes'] = totalRxBytes;
}
if (totalTxBytes != null) {
_json[r'total-tx-bytes'] = totalTxBytes;
}
return _json;
}