toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final dataset = this.dataset;
  final schedule = this.schedule;
  return {
    if (dataset != null) 'dataset': dataset,
    if (schedule != null) 'schedule': schedule,
  };
}