MoodleTask class
A task that is part of a MoodleCourse.
- Annotations
Constructors
- MoodleTask({@JsonKey(name: 'moduleid') required int id, required String name, @JsonKey(name: 'courseid') required int courseId, required MoodleTaskStatus status, required MoodleTaskType type, @UnixTimestampConverter() required DateTime? deadline, required String url})
-
A task that is part of a MoodleCourse.
constfactory
-
MoodleTask.fromJson(Map<
String, Object?> json) -
Creates a MoodleTask from a JSON object.
factory
Properties
-
copyWith
→ $MoodleTaskCopyWith<
MoodleTask> -
Create a copy of MoodleTask
with the given fields replaced by the non-null parameter values.
no setterinherited
- courseId → int
-
The ID of the MoodleCourse this task is part of.
no setterinherited
- deadline → DateTime?
-
The timestamp of when this task is due in seconds since the Unix epoch.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The ID of this task.
no setterinherited
- name → String
-
The name of this task.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → MoodleTaskStatus
-
The status of this task.
no setterinherited
- type → MoodleTaskType
-
The type of this task.
no setterinherited
- url → String
-
The URL to this task on the Moodle website.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this MoodleTask to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited