carpBody property Null safety

Map<String, dynamic>? carpBody

The CARP data point body. Can be any JSON payload.

When this data point is created locally on the phone, the carpBody is a json serialization of data. If this data point is deserialized from json, the carpBody is the raw json.

Note that we do not support type/schema checking in this data pay load. CARP allow for any json formatted data to be uploaded and stored.

Implementation

Map<String, dynamic>? get carpBody =>
    (data != null) ? data!.toJson() : _carpBody;
void carpBody=(Map<String, dynamic>? data)

Implementation

set carpBody(Map<String, dynamic>? data) => _carpBody = data;