LearningObjectiveModel class abstract
- Available extensions
- Annotations
Constructors
- LearningObjectiveModel({required String id, required String orgId, required String assignmentId, @Default('application') String targetMastery, DateTime? targetDate, @Default('active') String status, required String createdBy, required DateTime createdAt, required DateTime updatedAt})
-
constfactory
- LearningObjectiveModel.fromEntity(LearningObjective entity)
-
factory
-
LearningObjectiveModel.fromJson(Map<
String, dynamic> json) -
factory
Properties
- assignmentId → String
-
no setterinherited
-
copyWith
→ $LearningObjectiveModelCopyWith<
LearningObjectiveModel> -
Create a copy of LearningObjectiveModel
with the given fields replaced by the non-null parameter values.
no setterinherited
- createdAt → DateTime
-
no setterinherited
- createdBy → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setterinherited
- orgId → String
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
no setterinherited
- targetDate → DateTime?
-
no setterinherited
- targetMastery → String
-
no setterinherited
- updatedAt → DateTime
-
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_LearningObjectiveModel value)) → TResult -
Available on LearningObjectiveModel, provided by the LearningObjectiveModelPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_LearningObjectiveModel value)?) → TResult? -
Available on LearningObjectiveModel, provided by the LearningObjectiveModelPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_LearningObjectiveModel value)?, {required TResult orElse()}) → TResult -
Available on LearningObjectiveModel, provided by the LearningObjectiveModelPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String id, String orgId, String assignmentId, String targetMastery, DateTime? targetDate, String status, String createdBy, DateTime createdAt, DateTime updatedAt)?, {required TResult orElse()}) → TResult -
Available on LearningObjectiveModel, provided by the LearningObjectiveModelPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toEntity(
) → LearningObjective -
toInsertJson(
) → Map< String, dynamic> -
toJson(
) → Map< String, dynamic> -
Serializes this LearningObjectiveModel to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String id, String orgId, String assignmentId, String targetMastery, DateTime? targetDate, String status, String createdBy, DateTime createdAt, DateTime updatedAt)) → TResult -
Available on LearningObjectiveModel, provided by the LearningObjectiveModelPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String id, String orgId, String assignmentId, String targetMastery, DateTime? targetDate, String status, String createdBy, DateTime createdAt, DateTime updatedAt)?) → TResult? -
Available on LearningObjectiveModel, provided by the LearningObjectiveModelPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited