toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final cronExpression = this.cronExpression;
  final interval = this.interval;
  final intervalUnit = this.intervalUnit;
  final times = this.times;
  return {
    if (cronExpression != null) 'CronExpression': cronExpression,
    if (interval != null) 'Interval': interval,
    if (intervalUnit != null) 'IntervalUnit': intervalUnit.toValue(),
    if (times != null) 'Times': times,
  };
}