TeamComparisonEntryModel class abstract

Available extensions
Annotations

Constructors

TeamComparisonEntryModel({required String teamId, required String teamName, required int memberCount, @Default(0.0) double avgMastery, @Default(0.0) double activePct, @JsonKey(name: 'sessions_30d') required int sessions30d})
const
factory
TeamComparisonEntryModel.fromJson(Map<String, dynamic> json)
factory

Properties

activePct double
no setterinherited
avgMastery double
no setterinherited
copyWith → $TeamComparisonEntryModelCopyWith<TeamComparisonEntryModel>
Create a copy of TeamComparisonEntryModel with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
memberCount int
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessions30d int
no setterinherited
teamId String
no setterinherited
teamName String
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_TeamComparisonEntryModel value)) → TResult

Available on TeamComparisonEntryModel, provided by the TeamComparisonEntryModelPatterns extension

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

Available on TeamComparisonEntryModel, provided by the TeamComparisonEntryModelPatterns extension

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

Available on TeamComparisonEntryModel, provided by the TeamComparisonEntryModelPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String teamId, String teamName, int memberCount, double avgMastery, double activePct, int sessions30d)?, {required TResult orElse()}) → TResult

Available on TeamComparisonEntryModel, provided by the TeamComparisonEntryModelPatterns 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() TeamComparisonEntry
toJson() Map<String, dynamic>
Serializes this TeamComparisonEntryModel to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String teamId, String teamName, int memberCount, double avgMastery, double activePct, int sessions30d)) → TResult

Available on TeamComparisonEntryModel, provided by the TeamComparisonEntryModelPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String teamId, String teamName, int memberCount, double avgMastery, double activePct, int sessions30d)?) → TResult?

Available on TeamComparisonEntryModel, provided by the TeamComparisonEntryModelPatterns extension

A variant of when that fallback to returning null

Operators

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