Skip to content

OccupationInput

Occupation details of a participant (supports multiple selections).

Inheritance
Annotations

Constructors

OccupationInput.fromJson

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

OccupationInput

OccupationInput({
  1. List<String>? roles,
  2. String? other,
})

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

other

String? other
getter/setter pair

Free-text occupation if none of the predefined roles fit.

roles

List<String> roles
getter/setter pair

One or more selected occupations of the participant.

type

String get type
override

The type of this input data.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.