Skip to content

DefaultDeviceConfiguration

A DeviceConfiguration with no extra properties, for generic devices.

Also used as a placeholder when deserializing device-dependent objects.

Inheritance
Annotations

Constructors

DefaultDeviceConfiguration.fromJson

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

DefaultDeviceConfiguration

DefaultDeviceConfiguration({
  1. required String roleName,
  2. bool? isOptional,
})

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

Methods

createRegistration

DefaultDeviceRegistration createRegistration({
  1. String? deviceId,
  2. String? deviceDisplayName,
})
override

Create a DeviceRegistration which can be used to configure this device for deployment.

Override this method to configure device-specific registration options, if any.

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.