Skip to content

RPConsentSignature

Class representing a signature in a consent document

Signatures can be collected during a RPConsentReviewStep.

The signature object has no concept of a cryptographic signature – it is merely a record of any input the user made during a consent review step. Also, the object does not verify or vouch for user identity.

Inheritance
Annotations

Constructors

RPConsentSignature.fromJson

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

RPConsentSignature

RPConsentSignature({
  1. required String identifier,
  2. String? title,
  3. bool requiresName = true,
  4. bool requiresSignatureImage = true,
})

The default constructor. Returns a signature where both the name and the signature image is required

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

identifier

String identifier
getter/setter pair

Unique identifier of the signature. This identifies the signature in the result hierarchy.

In a result object of a task which collects signature the identifier of the RPConsentSignatureResult object on the deepest level is identical to this identifier.

requiresName

bool requiresName
getter/setter pair

The parameter to decide if the signature requires name.

If set to true it requires an entered name.

requiresSignatureImage

bool requiresSignatureImage
getter/setter pair

The parameter to decide if the signature requires a signature image.

If set to true the participant has to draw their signature which will be saved as a picture later.

title

String? title
getter/setter pair

The title of the consent signature page

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.