Skip to content

AssignedTo

Determines which participant roles to assign to something.

Either all participants (AssignedTo.all) or the given roleNames. Serializes as AssignedTo.All or AssignedTo.Roles in CARP Core.

Inheritance
Annotations

Constructors

AssignedTo.all

AssignedTo.all()

Create a new assignment assigned to all participants in the study protocol.

AssignedTo.fromJson

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

AssignedTo

AssignedTo({
  1. Set<String>? roleNames,
})

Create a new assignment with the list of roleNames.

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

isAssignedToAll

bool get isAssignedToAll

Is this role assigned to all participants?

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.

roleNames

Set<String>? roleNames
getter/setter pair

Assign this to the specified roleNames in the study protocol. If null, assign this to all participants in the study protocol.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.