Map<String, Object?> encode() => { if (weekDayOfMonth != null) 'week_day_of_month': [weekDayOfMonth!.encode()], if (monthDay != null) 'month_day': monthDay!.toTfJson(), };