toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (avgMs != null) 'avgMs': avgMs!,
if (duration != null) 'duration': duration!,
if (maxMs != null) 'maxMs': maxMs!,
if (minMs != null) 'minMs': minMs!,
if (numIntervals != null) 'numIntervals': numIntervals!,
if (type != null) 'type': type!,
};