PlanDeadline constructor
- @JsonKey(name: 'moduleid') required int id,
- @JsonKey(name: 'deadlinestart') @UnixTimestampConverter() required DateTime start,
- @JsonKey(name: 'deadlineend') @UnixTimestampConverter() required DateTime end,
A deadline for a MoodleTask in a CalendarPlan.
Implementation
const factory PlanDeadline({
/// The ID of this deadline.
@JsonKey(name: 'moduleid') required int id,
/// The start date of this deadline.
@JsonKey(name: 'deadlinestart') @UnixTimestampConverter() required DateTime start,
/// The end date of this deadline.
@JsonKey(name: 'deadlineend') @UnixTimestampConverter() required DateTime end,
}) = _PlanDeadline;