PlanDeadline constructor

const PlanDeadline({
  1. @JsonKey(name: 'moduleid') required int id,
  2. @JsonKey(name: 'deadlinestart') @UnixTimestampConverter() required DateTime start,
  3. @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;