toJson method
Implementation
Map<String, dynamic> toJson() {
final captureInterval = this.captureInterval;
final captureIntervalUnits = this.captureIntervalUnits;
return {
'captureInterval': captureInterval,
if (captureIntervalUnits != null)
'captureIntervalUnits': captureIntervalUnits.toValue(),
};
}