RPConsentDocument class
Represents the content of an informed consent document.
Research Package uses RPConsentDocument to provide content for RPVisualConsentStep where the content if presented to the participant and for RPConsentReviewStep where the user can review and sign the document. The building blocks of a consent document are sections. They hold the content which is presented and later agreed by the participant. By adding signatures to the consent document the parameters of the signature(s) to collect can be specified.
- Annotations
- @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
Constructors
- RPConsentDocument()
-
RPConsentDocument.fromJson(Map<
String, dynamic> json) -
factory
-
RPConsentDocument.withParams(String _title, List<
RPConsentSection> _sections)
Properties
-
sections
↔ List<
RPConsentSection> -
The sections which hold the content of the consent document [...]
read / write
- signaturePageContent ↔ String
-
For creating PDF. Coming later...
read / write
- signaturePageTitle ↔ String
-
For creating PDF. Coming later...
read / write
-
signatures
↔ List<
RPConsentSignature> -
The set of signatures that are required in the document
read / write
- title ↔ String
-
The title of the document [...]
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
addSignature(
RPConsentSignature signature) → void - Adds a signature to the array of signatures
-
getConsentSignatureAtIndex(
int index) → RPConsentSignature - Returns an RPConsentSignature from the signatures array at the given index
-
toJson(
) → Map< String, dynamic> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited