Source class

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

Supports map representation.

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

Constructors

Source(String name, String bundleIdentifier)
const
Source.fromJson(Map<String, dynamic> json)
General constructor from JSON payload

Properties

bundleIdentifier String
final
hashCode int
The hash code for this object.
no setterinherited
map Map<String, String>
General map representation
no setter
name String
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<Source>
Simplifies creating a list of objects from JSON payload.