DataPointHeader class Null safety

The header (meta-data) attached to all DataPoints.

Annotations

Constructors

DataPointHeader({String? studyId, String? userId, DataFormat dataFormat = DataFormat.UNKNOWN, String? deviceRoleName, String? triggerId, DateTime? startTime, DateTime? endTime})
Create a new DataPointHeader.
DataPointHeader.fromJson(Map<String, dynamic> json)
Create a DataPointHeader from a JSON map.
factory

Properties

dataFormat DataFormat
The data format. See DataFormat and NameSpace.
read / write
deviceRoleName String?
The role of the device that collected this data point.
read / write
endTime DateTime?
The UTC end timestamp for this data point. If this data point does not cover a period, endTime will be null.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
startTime DateTime?
The UTC start timestamp for this data point.
read / write
studyId String?
An ID of this study. [...]
read / write
triggerId String?
The id of the Trigger in the study deployment that generated this data point.
read / write
uploadTime DateTime?
The UTC time stamp of when this data point was uploaded to the server. Set by the server.
read / write
userId String?
The ID of the user (if known).
read / write

Methods

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

Operators

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