ActivityDatum class
Holds activity information.
- Inheritance
- Object
- Datum
- CARPDatum
- ActivityDatum
- Annotations
- @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
Constructors
- ActivityDatum()
- ActivityDatum.fromActivity(Activity activity)
-
ActivityDatum.fromJson(Map<
String, dynamic> json) -
factory
- ActivityDatum.fromMap(Map map)
Properties
- confidence ↔ int
-
Confidence in activity recognition.
read / write
- format → DataFormat
-
The
DataFormat
of thisDatum
.read-only, override - type ↔ String
-
Type of activity recognized. [...]
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- id ↔ String
-
Unique identifier for the current Datum, unique across all data generated.
read / write, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- timestamp ↔ DateTime
-
The UTC timestamp for generating this data on the device.
read / write, inherited
Methods
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
Returns a string representation of this object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
Constants
- CARP_DATA_FORMAT → const DataFormat
-
const DataFormat(NameSpace.CARP, DataType.ACTIVITY)