DeviceDescriptor class

A DeviceDescriptor represents the status of a deployment as returned from the CARP web service.

Inheritance
Annotations
  • @JsonSerializable(fieldRename: FieldRename.none, includeIfNull: false)

Constructors

DeviceDescriptor()
DeviceDescriptor.fromJson(Map<String, dynamic> json)
factory

Properties

$type ↔ String
The runtime class name (type) of this object. Used for deserialization from JSON objects.
read / write, inherited
deviceType → String
Get the type of this device, like Smartphone.
read-only
fromJsonFunction → Function
The function which can convert a JSON string to an object of this type.
read-only, override
hashCode → int
The hash code for this object. [...]
read-only, inherited
isMasterDevice ↔ bool
Is this the master device?
read / write
roleName ↔ String
The role name of this device in a specific deployment. For example, 'Patient's phone'
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
samplingConfiguration ↔ Map<String, dynamic>
Sampling configurations for data types available on this device which override the default configuration.
read / write
studyDeploymentId ↔ String
The CARP study deployment ID.
read / write, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() → Map<String, dynamic>
Return a JSON encoding of this object.
override
toString() → String
Returns a string representation of this object.
override

Operators

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