Skip to content

ParticipantAttribute

Describes expected data to be input by users related to one or multiple participants in a study.

inputDataType is one of the InputType names, e.g. InputType.SEX.

Inheritance
Annotations

Constructors

ParticipantAttribute.fromJson

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

ParticipantAttribute

ParticipantAttribute({
  1. required String inputDataType,
})

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

inputDataType

String inputDataType
getter/setter pair

Uniquely identifies the type of data represented by this participant attribute.

jsonType

String get jsonType
override

Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.