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})
const
factory
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

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_LearningSessionModel value)?) → TResult?

Available on LearningSessionModel, provided by the LearningSessionModelPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_LearningSessionModel value)?, {required TResult orElse()}) → TResult

Available on LearningSessionModel, provided by the LearningSessionModelPatterns extension

A variant of map that fallback to returning orElse.
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 of when that fallback to an orElse callback.
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

A switch-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 of when that fallback to returning null

Operators

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