SensorValue class

Class to store one sample data point

Constructors

SensorValue({required DateTime time, required num value})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
time DateTime
timestamp of datapoint
final
value num
value of datapoint
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() Map<String, dynamic>
Returns JSON mapped data point
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

toJSONArray(List<SensorValue> data) List<Map<String, dynamic>>
Map a list of data samples to a JSON formatted array.