Skip to content

InformedConsentInput

The informed consent from a participant.

Inheritance
Annotations

Constructors

InformedConsentInput.fromJson

InformedConsentInput.fromJson(
  1. Map<String, dynamic> json
)

InformedConsentInput

InformedConsentInput({
  1. DateTime? signedTimestamp,
  2. String? signedLocation,
  3. required String userId,
  4. required String name,
  5. required String consent,
  6. required String signatureImage,
})

Properties

String consent
getter/setter pair

The content of the signed consent.

This may be plain text or JSON.

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

name

String name
getter/setter pair

The full name of the participant who signed this consent.

signatureImage

String signatureImage
getter/setter pair

The image of the provided signature in png format as bytes.

signedLocation

String? signedLocation
getter/setter pair

The location where this informed consent was signed.

signedTimestamp

DateTime signedTimestamp
getter/setter pair

The time this informed consent was signed, in UTC. Defaults to the time of creation.

type

String get type
override

The type of this input data.

userId

String userId
getter/setter pair

The ID of the participant who signed this consent.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.