Statistics class
Equivalent of Statistics from HealthKitReporter https://cocoapods.org/pods/HealthKitReporter
Supports map representation.
Has a Statistics.fromJson constructor
to create instances from JSON payload coming from iOS native code.
And supports multiple object creation by collect
method from JSON list.
Requires QuantityType permissions provided.
Constructors
-
Statistics(String identifier, num startTimestamp, num endTimestamp, StatisticsHarmonized harmonized, List<
Source> sources) -
const
-
Statistics.fromJson(Map<
String, dynamic> json)
Properties
- endTimestamp → num
-
final
- harmonized → StatisticsHarmonized
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → String
-
final
-
map
→ Map<
String, dynamic> -
General map representation
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sources
→ List<
Source> -
final
- startTimestamp → num
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited