Skip to content

PersonalComputer

Configuration of an internet-connected personal computer with no built-in sensors.

A PrimaryDeviceConfiguration registered with a PersonalComputerRegistration.

Inheritance
Annotations

Constructors

PersonalComputer.fromJson

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

PersonalComputer

PersonalComputer({
  1. String roleName = PersonalComputer.DEFAULT_ROLE_NAME,
})

Create a new personal computer device descriptor. If roleName is not specified, then the DEFAULT_ROLE_NAME is used.

Constants

DEFAULT_ROLE_NAME

String const DEFAULT_ROLE_NAME

The default role name for a personal computer.

DEVICE_TYPE

String const DEVICE_TYPE

The type of a personal computer device.

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

Methods

createRegistration

PersonalComputerRegistration createRegistration({
  1. String? deviceId,
  2. String? deviceDisplayName,
  3. String? platform,
  4. String? computerName,
  5. int? memorySize,
  6. String? deviceModel,
  7. String? operatingSystem,
  8. String? version,
})
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.