Device constructor

const Device({
  1. required String id,
  2. @Default(null) String? rev,
  3. @Default(null) int? deletionDate,
  4. @Default([]) List<Identifier> identifiers,
  5. @Default(null) int? created,
  6. @Default(null) int? modified,
  7. @Default(null) String? author,
  8. @Default(null) String? responsible,
  9. @Default({}) Set<CodeStub> tags,
  10. @Default({}) Set<CodeStub> codes,
  11. @Default(null) int? endOfLife,
  12. @Default(null) String? medicalLocationId,
  13. @Default(null) String? externalId,
  14. @Default(null) String? name,
  15. @Default(null) String? type,
  16. @Default(null) String? brand,
  17. @Default(null) String? model,
  18. @Default(null) String? serialNumber,
  19. @Default(null) String? parentId,
  20. @Default(null) Uint8List? picture,
  21. @Default({}) Set<DecryptedPropertyStub> properties,
  22. @Default({}) Map<String, List<HexString>> hcPartyKeys,
  23. @Default({}) Map<AesExchangeKeyEntryKeyString, Map<String, Map<AesExchangeKeyEncryptionKeypairIdentifier, HexString>>> aesExchangeKeys,
  24. @Default({}) Map<AesExchangeKeyEncryptionKeypairIdentifier, Map<AesExchangeKeyEncryptionKeypairIdentifier, HexString>> transferKeys,
  25. @Default({}) Map<String, HexString> privateKeyShamirPartitions,
  26. @Default(null) CardinalRsaPublicKey? publicKey,
  27. @Default({}) Set<CardinalRsaPublicKey> publicKeysForOaepWithSha256,
  28. @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;