DataPoint class Null safety

A data point storing meta-information and the data.

Annotations

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. [...]
read / write
carpHeader DataPointHeader
The data point header.
read / write
createdByUserId int?
The unique id of the user who created / uploaded this data point. null if this data point is not yet stored. [...]
read / write
data Data?
The CARP data point body. Can be any payload modelled as a Data.
@JsonKey(ignore: true), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int?
A unique, server-side generated ID for this data point. null if this data point is not yet stored.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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