Skip to content

RegisterDevice

A request for registering a device in a study deployment.

Inheritance
Annotations

Constructors

RegisterDevice.fromJson

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

RegisterDevice

RegisterDevice(
  1. String? studyDeploymentId,
  2. String deviceRoleName,
  3. DeviceRegistration registration
)

Properties

deviceRoleName

String deviceRoleName
getter/setter pair

The role name of this device.

fromJsonFunction

Function get fromJsonFunction
override

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

registration

DeviceRegistration registration
getter/setter pair

The registration.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.

toString

String toString()
override

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.