Skip to content

ConsentDocument

A signed consent document read from the legacy CAWS consent endpoint.

Returned by the deprecated CarpService.createConsentDocument and CarpService.getConsentDocument. New code stores informed consent as participant data via ParticipationReference.setInformedConsent.

The document can be extracted with the document property or by using subscript syntax to access a specific field.

Properties

createdAt

DateTime get createdAt

The timestamp of creation of this document

createdBy

String? get createdBy

The id of the user who created this document

deploymentId

String? get deploymentId

The id of the study deployment of this document

document

Map<String, dynamic> get document

The actual consent document

id

int get id

The ID of the snapshot's document

snapshot

Map<String, dynamic> get snapshot

The full data snapshot

updatedAt

DateTime get updatedAt

The timestamp of latest update of this document

Methods

toString

String toString()
override

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.

Operators

operator []

dynamic operator [](
  1. String key
)

Reads individual data values from the snapshot