toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (refreshRateMs != null) {
    _json[r'refreshRateMs'] = refreshRateMs;
  }
  if (txBytes != null) {
    _json[r'txBytes'] = txBytes;
  }
  if (rxBytes != null) {
    _json[r'rxBytes'] = rxBytes;
  }
  return _json;
}