Device class abstract

Implemented types
Annotations
  • @freezed

Constructors

Device.new({required String id, @Default(null) String? rev, @Default(null) int? deletionDate, @Default([]) List<Identifier> identifiers, @Default(null) int? created, @Default(null) int? modified, @Default(null) String? author, @Default(null) String? responsible, @Default({}) Set<CodeStub> tags, @Default({}) Set<CodeStub> codes, @Default(null) int? endOfLife, @Default(null) String? medicalLocationId, @Default(null) String? externalId, @Default(null) String? name, @Default(null) String? type, @Default(null) String? brand, @Default(null) String? model, @Default(null) String? serialNumber, @Default(null) String? parentId, @Default(null) Uint8List? picture, @Default({}) Set<DecryptedPropertyStub> properties, @Default({}) Map<String, List<HexString>> hcPartyKeys, @Default({}) Map<AesExchangeKeyEntryKeyString, Map<String, Map<AesExchangeKeyEncryptionKeypairIdentifier, HexString>>> aesExchangeKeys, @Default({}) Map<AesExchangeKeyEncryptionKeypairIdentifier, Map<AesExchangeKeyEncryptionKeypairIdentifier, HexString>> transferKeys, @Default({}) Map<String, HexString> privateKeyShamirPartitions, @Default(null) CardinalRsaPublicKey? publicKey, @Default({}) Set<CardinalRsaPublicKey> publicKeysForOaepWithSha256, @Default(null) Set<DecryptedPropertyStub>? cryptoActorProperties})
const
factory

Properties

aesExchangeKeys Map<AesExchangeKeyEntryKeyString, Map<String, Map<AesExchangeKeyEncryptionKeypairIdentifier, HexString>>>
no setterinherited
author String?
no setterinherited
brand String?
no setterinherited
codes Set<CodeStub>
no setterinherited
copyWith → $DeviceCopyWith<Device>
Create a copy of Device with the given fields replaced by the non-null parameter values.
no setterinherited
created int?
no setterinherited
cryptoActorProperties Set<DecryptedPropertyStub>?
no setterinherited
deletionDate int?
no setterinherited
endOfLife int?
no setterinherited
externalId String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hcPartyKeys Map<String, List<HexString>>
no setterinherited
id String
no setterinherited
identifiers List<Identifier>
no setterinherited
medicalLocationId String?
no setterinherited
model String?
no setterinherited
modified int?
no setterinherited
name String?
no setterinherited
parentId String?
no setterinherited
picture Uint8List?
no setterinherited
privateKeyShamirPartitions Map<String, HexString>
no setterinherited
properties Set<DecryptedPropertyStub>
no setterinherited
publicKey CardinalRsaPublicKey?
no setterinherited
publicKeysForOaepWithSha256 Set<CardinalRsaPublicKey>
no setterinherited
responsible String?
no setterinherited
rev String?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serialNumber String?
no setterinherited
tags Set<CodeStub>
no setterinherited
transferKeys Map<AesExchangeKeyEncryptionKeypairIdentifier, Map<AesExchangeKeyEncryptionKeypairIdentifier, HexString>>
no setterinherited
type String?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

encode(Device value) Map<String, dynamic>
override
fromJSON(Map<String, dynamic> data) Device
override