toJson method
Implementation
Map<String, Object?> toJson() => {
if (rttMs != null) 'rttMs': rttMs,
if (jitterMs != null) 'jitterMs': jitterMs,
if (packetLoss != null) 'packetLoss': packetLoss,
if (bitrateKbps != null) 'bitrateKbps': bitrateKbps,
if (mos != null) 'mos': mos,
if (codec != null) 'codec': codec,
if (candidateType != null) 'candidateType': candidateType,
};