toJson method

Map<String, dynamic> toJson()

Implementation

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