Measure class

Defines data that needs to be measured/collected passively as part of a task defined by TaskConfiguration.

  • @JsonSerializable(fieldRename: FieldRename.none, includeIfNull: false)


Measure({required String type})
Create a measure by specifying its type.
Measure.fromJson(Map<String, dynamic> json)


$type String?
The runtime class name (type) of this object. Used for deserialization from JSON objects.
getter/setter pairinherited
dataType DataType
The type of measure as a DataType.
no setter
fromJsonFunction Function
The function which can convert a JSON string to an object of this type.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
jsonType String
Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.
no setteroverride
overrideSamplingConfiguration SamplingConfiguration?
Optionally, override the default configuration on how to sample the data stream of the matching type on the device. In case null is specified, the default configuration is derived from the DeviceConfiguration.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The type of measure to do.
getter/setter pair


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toJson() Map<String, dynamic>
Return a JSON encoding of this object.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.