LearningSessionModel class abstract
- Available extensions
- Annotations
Constructors
-
LearningSessionModel({required String id, required String userId, String? topicId, String? domainId, required String sessionType, required DateTime startedAt, DateTime? endedAt, int? durationMinutes, String? kolbPhase, @Default(false) bool reflectionCompleted, String? reflectionText, int? confidenceBefore, int? confidenceAfter, List<
String> ? keyTakeaways, @Default(false) bool isValidation, String? validationTarget, String? validationResult}) -
constfactory
- LearningSessionModel.fromEntity(LearningSession entity)
-
factory
-
LearningSessionModel.fromJson(Map<
String, dynamic> json) -
factory
Properties
- confidenceAfter → int?
-
no setterinherited
- confidenceBefore → int?
-
no setterinherited
-
copyWith
→ $LearningSessionModelCopyWith<
LearningSessionModel> -
Create a copy of LearningSessionModel
with the given fields replaced by the non-null parameter values.
no setterinherited
- domainId → String?
-
no setterinherited
- durationMinutes → int?
-
no setterinherited
- endedAt → DateTime?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setterinherited
- isValidation → bool
-
no setterinherited
-
keyTakeaways
→ List<
String> ? -
no setterinherited
- kolbPhase → String?
-
no setterinherited
- reflectionCompleted → bool
-
no setterinherited
- reflectionText → String?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionType → String
-
no setterinherited
- startedAt → DateTime
-
no setterinherited
- topicId → String?
-
no setterinherited
- userId → String
-
no setterinherited
- validationResult → String?
-
no setterinherited
- validationTarget → String?
-
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_LearningSessionModel value)) → TResult -
Available on LearningSessionModel, provided by the LearningSessionModelPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_LearningSessionModel value)?) → TResult? -
Available on LearningSessionModel, provided by the LearningSessionModelPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_LearningSessionModel value)?, {required TResult orElse()}) → TResult -
Available on LearningSessionModel, provided by the LearningSessionModelPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String id, String userId, String? topicId, String? domainId, String sessionType, DateTime startedAt, DateTime? endedAt, int? durationMinutes, String? kolbPhase, bool reflectionCompleted, String? reflectionText, int? confidenceBefore, int? confidenceAfter, List< String> ? keyTakeaways, bool isValidation, String? validationTarget, String? validationResult)?, {required TResult orElse()}) → TResult -
Available on LearningSessionModel, provided by the LearningSessionModelPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toEntity(
) → LearningSession -
toJson(
) → Map< String, dynamic> -
Serializes this LearningSessionModel to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String id, String userId, String? topicId, String? domainId, String sessionType, DateTime startedAt, DateTime? endedAt, int? durationMinutes, String? kolbPhase, bool reflectionCompleted, String? reflectionText, int? confidenceBefore, int? confidenceAfter, List< String> ? keyTakeaways, bool isValidation, String? validationTarget, String? validationResult)) → TResult -
Available on LearningSessionModel, provided by the LearningSessionModelPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String id, String userId, String? topicId, String? domainId, String sessionType, DateTime startedAt, DateTime? endedAt, int? durationMinutes, String? kolbPhase, bool reflectionCompleted, String? reflectionText, int? confidenceBefore, int? confidenceAfter, List< String> ? keyTakeaways, bool isValidation, String? validationTarget, String? validationResult)?) → TResult? -
Available on LearningSessionModel, provided by the LearningSessionModelPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited