Skip to content

MACAddressDeviceRegistration

A DeviceRegistration for devices which have a MAC address.

Represents an IEEE 802 48-bit media access control address (MAC address); a unique identifier assigned to a network interface controller (NIC) for use as a network address in communications within a network segment.

This is equivalent to the EUI-48 identifier.

Inheritance
Annotations

Constructors

MACAddressDeviceRegistration.fromJson

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

MACAddressDeviceRegistration

MACAddressDeviceRegistration({
  1. String? deviceId,
  2. String? deviceDisplayName,
  3. DateTime? registrationCreatedOn,
  4. required String macAddress,
})

Create a new MACAddressDeviceRegistration with a unique MAC macAddress. If deviceId is not specified, macAddress is used.

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

macAddress

String macAddress
getter/setter pair

The MAC address, represented according to the recommended IEEE 802 standard notation. Six groups of two upper case hexadecimal digits, separated by hyphens (-).

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.