DataOrigin class

Equivalent of DataOrigin from HealthConnectReporter https://github.com/kvs-coder/HealthConnectReporter

The app that wrote a record; also filters reads by app.

Supports map representation.

Has a DataOrigin.fromJson constructor to create instances from JSON payload coming from Android native code. And supports multiple object creation by collect method from JSON list.

Mixed-in types

Constructors

DataOrigin({required String packageName})
const
DataOrigin.fromJson(Map<String, dynamic> json)
General constructor from JSON payload

Properties

hashCode → int
The hash code for this object.
no setterinherited
map → Map<String, dynamic>
General map representation
no setteroverride
packageName → String
The app's package name, e.g. com.google.android.apps.fitness
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

collect(List list) → List<DataOrigin>
Simplifies creating a list of objects from JSON payload.