PlanDeadline class

A deadline for a MoodleTask in a CalendarPlan.

Annotations

Constructors

PlanDeadline({@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.
const
factory
PlanDeadline.fromJson(Map<String, Object?> json)
Creates a PlanDeadline from a JSON object.
factory

Properties

copyWith → $PlanDeadlineCopyWith<PlanDeadline>
Create a copy of PlanDeadline with the given fields replaced by the non-null parameter values.
no setterinherited
end DateTime
The end date of this deadline.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
The ID of this deadline.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start DateTime
The start date of this deadline.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this PlanDeadline to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited