SmartphoneDeployment class Null safety

Contains the entire description and configuration for how a smartphone master device participates in deployment of a study.



SmartphoneDeployment({String? studyDeploymentId, required MasterDeviceDescriptor deviceDescriptor, required DeviceRegistration configuration, List<DeviceDescriptor> connectedDevices = const [], Map<String, DeviceRegistration?> connectedDeviceConfigurations = const {}, List<TaskDescriptor> tasks = const [], Map<String, Trigger> triggers = const {}, List<TriggeredTask> triggeredTasks = const [], StudyDescription? protocolDescription, SamplingSchemaType? samplingStrategy, DataEndPoint? dataEndPoint})
Create a new SmartphoneDeployment. [...]
SmartphoneDeployment.fromJson(Map<String, dynamic> json)
SmartphoneDeployment.fromMasterDeviceDeployment({String? studyDeploymentId, required MasterDeviceDeployment masterDeviceDeployment, required SmartphoneStudyProtocol protocol})
Create a SmartphoneDeployment that combines a MasterDeviceDeployment and a SmartphoneStudyProtocol.
SmartphoneDeployment.fromSmartphoneStudyProtocol({String? studyDeploymentId, required String masterDeviceRoleName, required SmartphoneStudyProtocol protocol})
Create a SmartphoneDeployment based on a SmartphoneStudyProtocol. This method basically makes a 1:1 mapping between a protocol and a deployment.


configuration DeviceRegistration
Configuration for this master device.
read / write, inherited
connectedDeviceConfigurations Map<String, DeviceRegistration?>
Preregistration of connected devices, including configuration such as connection properties, stored per role name.
read / write, inherited
connectedDevices List<DeviceDescriptor>
The devices this device needs to connect to.
read / write, inherited
dataEndPoint DataEndPoint?
Specifies where and how to stored or upload the data collected from this deployment. If null, the sensed data is not stored, but may still be used in the app somehow.
read / write
deviceDescriptor MasterDeviceDescriptor
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
lastUpdateDate DateTime
The time when this device deployment was last updated. This corresponds to the most recent device registration as part of this device deployment.
read / write, inherited
measures List<Measure>
Get the list of all mesures in this study deployment.
protocolDescription StudyDescription?
The StudyDescription containing the title, description, purpose, and the responsible researcher for this study.
read / write
responsible StudyResponsible?
The PI responsible for this study.
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
samplingStrategy SamplingSchemaType?
The sampling strategy used in this deployment based on the standard SamplingSchemaType types.
read / write
studyDeploymentId String
The unique id of this study deployment.
tasks List<TaskDescriptor>
All tasks which should be able to be executed on this or connected devices.
read / write, inherited
triggeredTasks List<TriggeredTask>
The specification of tasks triggered and the devices they are sent to.
read / write, inherited
triggers Map<String, Trigger>
All triggers originating from this device and connected devices, stored per assigned id unique within the study protocol.
read / write, inherited
userId String?
The unique id of the user that this deployment collects data from. [...]
read / write


adapt(SamplingSchema schema, {bool restore = true}) → void
Adapt the sampling measures of this deployment to the specified schema.
getTaskByName(String name) TaskDescriptor?
Get the task based on its task name in this deployment.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]