Device class

Annotations
  • @freezed

Constructors

Device.new({String? certificate, String? clientVersion, @JsonKey(name: 'deviceID') required String deviceId, String? deviceName, String? deviceType, String? managedBy, List<Device?>? managedDevices, UserRef? owner, String? publicKey, String? settings, DeviceUsersConnection? users})
factory
Device.fromJson(Map<String, dynamic> json)
factory

Properties

certificate String?
no setterinherited
clientVersion String?
no setterinherited
copyWith → $DeviceCopyWith<Device>
Create a copy of Device with the given fields replaced by the non-null parameter values.
no setterinherited
deviceId String
no setterinherited
deviceName String?
no setterinherited
deviceType String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
managedBy String?
no setterinherited
managedDevices List<Device?>?
no setterinherited
owner UserRef?
no setterinherited
publicKey String?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings String?
no setterinherited
users DeviceUsersConnection?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this Device to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited