Converts this RecurrencePattern instance to a JSON object.
Map<String, dynamic> toJson() => _$RecurrencePatternToJson(this);