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
-
- Object
- Serializable
- AssignedTo
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
AssignedTo.all
Create a new assignment assigned to all participants in the study protocol.
AssignedTo.fromJson
AssignedTo
Create a new assignment with the list of roleNames.
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
isAssignedToAll
Is this role assigned to all participants?
jsonType
Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.
roleNames
Assign this to the specified roleNames in the study protocol. If null, assign this to all participants in the study protocol.
Methods
toJson
Return a JSON encoding of this object.