OrgAnalyticsSummaryModel class abstract
- Available extensions
- Annotations
Constructors
- OrgAnalyticsSummaryModel({@JsonKey(name: 'active_users_7d') required int activeUsers7d, @JsonKey(name: 'active_users_30d') required int activeUsers30d, @Default(0.0) double avgMastery, @JsonKey(name: 'total_sessions_7d') required int totalSessions7d, @JsonKey(name: 'total_sessions_30d') required int totalSessions30d, @Default(100.0) double assignmentsOnTrackPct, required int assignmentsOverdueCount})
-
constfactory
-
OrgAnalyticsSummaryModel.fromJson(Map<
String, dynamic> json) -
factory
Properties
- activeUsers30d → int
-
no setterinherited
- activeUsers7d → int
-
no setterinherited
- assignmentsOnTrackPct → double
-
no setterinherited
- assignmentsOverdueCount → int
-
no setterinherited
- avgMastery → double
-
no setterinherited
-
copyWith
→ $OrgAnalyticsSummaryModelCopyWith<
OrgAnalyticsSummaryModel> -
Create a copy of OrgAnalyticsSummaryModel
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalSessions30d → int
-
no setterinherited
- totalSessions7d → int
-
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_OrgAnalyticsSummaryModel value)) → TResult -
Available on OrgAnalyticsSummaryModel, provided by the OrgAnalyticsSummaryModelPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_OrgAnalyticsSummaryModel value)?) → TResult? -
Available on OrgAnalyticsSummaryModel, provided by the OrgAnalyticsSummaryModelPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_OrgAnalyticsSummaryModel value)?, {required TResult orElse()}) → TResult -
Available on OrgAnalyticsSummaryModel, provided by the OrgAnalyticsSummaryModelPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(int activeUsers7d, int activeUsers30d, double avgMastery, int totalSessions7d, int totalSessions30d, double assignmentsOnTrackPct, int assignmentsOverdueCount)?, {required TResult orElse()}) → TResult -
Available on OrgAnalyticsSummaryModel, provided by the OrgAnalyticsSummaryModelPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toEntity(
) → OrgAnalyticsSummary -
toJson(
) → Map< String, dynamic> -
Serializes this OrgAnalyticsSummaryModel to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(int activeUsers7d, int activeUsers30d, double avgMastery, int totalSessions7d, int totalSessions30d, double assignmentsOnTrackPct, int assignmentsOverdueCount)) → TResult -
Available on OrgAnalyticsSummaryModel, provided by the OrgAnalyticsSummaryModelPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(int activeUsers7d, int activeUsers30d, double avgMastery, int totalSessions7d, int totalSessions30d, double assignmentsOnTrackPct, int assignmentsOverdueCount)?) → TResult? -
Available on OrgAnalyticsSummaryModel, provided by the OrgAnalyticsSummaryModelPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited