Skip to content

DefaultDeviceRegistration

A concrete DeviceRegistration which only holds the base properties.

Used by most devices, including Smartphone.

Inheritance
Annotations

Constructors

DefaultDeviceRegistration.fromJson

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

DefaultDeviceRegistration

DefaultDeviceRegistration({
  1. String? deviceId,
  2. String? deviceDisplayName,
  3. DateTime? registrationCreatedOn,
})

Create a new DefaultDeviceRegistration.

  • deviceId - a unique id for this device. If not specified, a unique id will be generated.
  • deviceDisplayName - an optional concise textual representation for display purposes describing the key specifications of the device.
  • registrationCreatedOn - the time in UTC when this registration was created. If not specified, the time of creation will be used.

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.