Skip to content

PersonalComputerRegistration

A DeviceRegistration for a PersonalComputer specifying details of the PC.

Takes inspiration from the device information available via the device_info_plus via the MacOsDeviceInfo and WindowsDeviceInfo classes.

Inheritance
Annotations

Constructors

PersonalComputerRegistration.fromJson

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

PersonalComputerRegistration

PersonalComputerRegistration({
  1. String? deviceId,
  2. String? deviceDisplayName,
  3. DateTime? registrationCreatedOn,
  4. String? platform,
  5. String? computerName,
  6. int? memorySize,
  7. String? deviceModel,
  8. String? operatingSystem,
  9. String? version,
})

Properties

computerName

String? computerName
getter/setter pair

deviceModel

String? deviceModel
getter/setter pair

fromJsonFunction

Function get fromJsonFunction
override

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

memorySize

int? memorySize
getter/setter pair

operatingSystem

String? operatingSystem
getter/setter pair

platform

String? platform
getter/setter pair

version

String? version
getter/setter pair

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.