HeartRateModel class

Available extensions
Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

HeartRateModel.new({required int bpm, required HeartRateSource source, required String timestamp})
const
HeartRateModel.fromJson(Map<String, dynamic> json)
factory

Properties

bpm int
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source HeartRateSource
final
timestamp String
final

Methods

copyWith({int? bpm, HeartRateSource? source, String? timestamp}) HeartRateModel

Available on HeartRateModel, provided by the $HeartRateModelExtension extension

copyWithWrapped({Wrapped<int>? bpm, Wrapped<HeartRateSource>? source, Wrapped<String>? timestamp}) HeartRateModel

Available on HeartRateModel, provided by the $HeartRateModelExtension 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 HeartRateModel Function(Map<String, dynamic> json)
toJsonFactory → const Map<String, dynamic> Function(HeartRateModel instance)