SessionModel class

Available extensions
Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

SessionModel.new({required String id, required DateTime day, required String startDatetime, required String endDatetime, required MomentType type, dynamic heartRate, dynamic heartRateVariability, dynamic mood, dynamic motionCount})
const
SessionModel.fromJson(Map<String, dynamic> json)
factory

Properties

day DateTime
final
endDatetime String
final
hashCode int
The hash code for this object.
no setteroverride
heartRate → dynamic
final
heartRateVariability → dynamic
final
id String
final
mood → dynamic
final
motionCount → dynamic
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startDatetime String
final
type MomentType
final

Methods

copyWith({String? id, DateTime? day, String? startDatetime, String? endDatetime, MomentType? type, dynamic heartRate, dynamic heartRateVariability, dynamic mood, dynamic motionCount}) SessionModel

Available on SessionModel, provided by the $SessionModelExtension extension

copyWithWrapped({Wrapped<String>? id, Wrapped<DateTime>? day, Wrapped<String>? startDatetime, Wrapped<String>? endDatetime, Wrapped<MomentType>? type, Wrapped? heartRate, Wrapped? heartRateVariability, Wrapped? mood, Wrapped? motionCount}) SessionModel

Available on SessionModel, provided by the $SessionModelExtension extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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

Constants

fromJsonFactory → const SessionModel Function(Map<String, dynamic> json)
toJsonFactory → const Map<String, dynamic> Function(SessionModel instance)