PreferredUnit class

Equivalent of PreferredUnit from HealthKitReporter https://cocoapods.org/pods/HealthKitReporter

Has a PreferredUnit.fromJson constructor to create instances from JSON payload coming from iOS native code.

Constructors

PreferredUnit(String identifier, String unit)
const
PreferredUnit.fromJson(Map<String, dynamic> json)
General constructor from JSON payload

Properties

hashCode int
The hash code for this object.
no setterinherited
identifier String
final
map Map<String, String>
General map representation
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unit String
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