toJson method

Map<String, dynamic> toJson()

Implementation

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