DataPoint class

A data point storing meta-information and the data.

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

Constructors

DataPoint(DataPointHeader carpHeader, [Data? data])
Create a new DataPoint.
DataPoint.fromData(Data data)
Create a DataPoint from a Data object.
factory
DataPoint.fromJson(Map<String, dynamic> json)
Create a DataPoint from a JSON map.
factory

Properties

carpBody Map<String, dynamic>?
The CARP data point body. Can be any JSON payload.
getter/setter pair
carpHeader DataPointHeader
The data point header.
getter/setter pair
createdByUserId int?
The unique id of the user who created / uploaded this data point. null if this data point is not yet stored.
getter/setter pair
data Data?
The CARP data point body. Can be any payload modelled as a Data.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int?
A unique, server-side generated ID for this data point. null if this data point is not yet stored.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
studyId String?
The unique study deployment id that this data point belongs to / is uploaded as part of. Set by the server. null if this data point is not yet stored.
getter/setter pair

Methods

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

Operators

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