toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final result$data = <String, dynamic>{};
  if (_$data.containsKey('frequency')) {
    final l$frequency = frequency;
    result$data['frequency'] = l$frequency;
  }
  if (_$data.containsKey('period')) {
    final l$period = period;
    result$data['period'] =
        l$period == null ? null : toJson$Enum$PeriodCycleEnum(l$period);
  }
  return result$data;
}