MoodleTask class

A task that is part of a MoodleCourse.

Annotations

Constructors

MoodleTask({@JsonKey(name: 'assignid') required int id, @JsonKey(name: 'cmid') required int cmid, required String name, @JsonKey(name: 'courseid') required int courseId, required MoodleTaskStatus status, required MoodleTaskType type, @JsonKey(name: 'duedate') @UnixTimestampConverterNullable() DateTime? deadline})
A task that is part of a MoodleCourse.
const
factory
MoodleTask.fromJson(Map<String, Object?> json)
Creates a MoodleTask from a JSON object.
factory

Properties

cmid → int
The id of the task within it's parent MoodleCourse.
no setterinherited
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 setter

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