Device constructor
const
Device({
- 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< hcPartyKeys,HexString> > - @Default({}) Map<
AesExchangeKeyEntryKeyString, Map< aesExchangeKeys,String, Map< >AesExchangeKeyEncryptionKeypairIdentifier, HexString> > - @Default({}) Map<
AesExchangeKeyEncryptionKeypairIdentifier, Map< transferKeys,AesExchangeKeyEncryptionKeypairIdentifier, HexString> > - @Default({}) Map<
String, HexString> privateKeyShamirPartitions, - @Default(null) CardinalRsaPublicKey? publicKey,
- @Default({}) Set<
CardinalRsaPublicKey> publicKeysForOaepWithSha256, - @Default(null) Set<
DecryptedPropertyStub> ? cryptoActorProperties,
Implementation
const factory Device({
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,
}) = _Device;