toJson method
Implementation
Map<String, dynamic> toJson() {
final intervalInSeconds = this.intervalInSeconds;
final sizeInMBs = this.sizeInMBs;
return {
if (intervalInSeconds != null) 'IntervalInSeconds': intervalInSeconds,
if (sizeInMBs != null) 'SizeInMBs': sizeInMBs,
};
}