Map<String, dynamic> toJson() { final json = <String, dynamic>{}; if (weekday != null) { json[r'weekday'] = weekday; } if (weekNumber != null) { json[r'weekNumber'] = weekNumber; } return json; }