EncryptedDocument constructor

const EncryptedDocument({
  1. required String id,
  2. @Default.new(null) String? rev,
  3. @Default.new(null) int? created,
  4. @Default.new(null) int? modified,
  5. @Default.new(null) String? author,
  6. @Default.new(null) String? responsible,
  7. @Default.new(null) String? medicalLocationId,
  8. @Default.new({}) Set<CodeStub> tags,
  9. @Default.new({}) Set<CodeStub> codes,
  10. @Default.new(null) int? endOfLife,
  11. @Default.new(null) int? deletionDate,
  12. @Default.new(null) DocumentLocation? documentLocation,
  13. @Default.new(null) DocumentType? documentType,
  14. @Default.new(null) DocumentStatus? documentStatus,
  15. @Default.new(null) String? externalUri,
  16. @Default.new(null) String? name,
  17. @Default.new(null) String? version,
  18. @Default.new(null) String? storedICureDocumentId,
  19. @Default.new(null) String? externalUuid,
  20. @Default.new(null) int? size,
  21. @Default.new(null) String? hash,
  22. @Default.new(null) String? openingContactId,
  23. @Default.new(null) String? attachmentId,
  24. @Default.new(null) String? objectStoreReference,
  25. @Default.new(null) String? mainUti,
  26. @Default.new({}) Set<String> otherUtis,
  27. @Default.new({}) Map<String, DataAttachment> secondaryAttachments,
  28. @Default.new([]) List<DeletedAttachment> deletedAttachments,
  29. @Default.new(null) Uint8List? encryptedAttachment,
  30. @Default.new(null) Uint8List? decryptedAttachment,
  31. @Default.new({}) Set<String> secretForeignKeys,
  32. @Default.new({}) Map<String, Set<Delegation>> cryptedForeignKeys,
  33. @Default.new({}) Map<String, Set<Delegation>> delegations,
  34. @Default.new({}) Map<String, Set<Delegation>> encryptionKeys,
  35. @Default.new(null) Base64String? encryptedSelf,
  36. @Default.new(null) SecurityMetadata? securityMetadata,
})

Implementation

const factory EncryptedDocument({
	required String id,
	@Default(null) String? rev,
	@Default(null) int? created,
	@Default(null) int? modified,
	@Default(null) String? author,
	@Default(null) String? responsible,
	@Default(null) String? medicalLocationId,
	@Default({}) Set<CodeStub> tags,
	@Default({}) Set<CodeStub> codes,
	@Default(null) int? endOfLife,
	@Default(null) int? deletionDate,
	@Default(null) DocumentLocation? documentLocation,
	@Default(null) DocumentType? documentType,
	@Default(null) DocumentStatus? documentStatus,
	@Default(null) String? externalUri,
	@Default(null) String? name,
	@Default(null) String? version,
	@Default(null) String? storedICureDocumentId,
	@Default(null) String? externalUuid,
	@Default(null) int? size,
	@Default(null) String? hash,
	@Default(null) String? openingContactId,
	@Default(null) String? attachmentId,
	@Default(null) String? objectStoreReference,
	@Default(null) String? mainUti,
	@Default({}) Set<String> otherUtis,
	@Default({}) Map<String, DataAttachment> secondaryAttachments,
	@Default([]) List<DeletedAttachment> deletedAttachments,
	@Default(null) Uint8List? encryptedAttachment,
	@Default(null) Uint8List? decryptedAttachment,
	@Default({}) Set<String> secretForeignKeys,
	@Default({}) Map<String, Set<Delegation>> cryptedForeignKeys,
	@Default({}) Map<String, Set<Delegation>> delegations,
	@Default({}) Map<String, Set<Delegation>> encryptionKeys,
	@Default(null) Base64String? encryptedSelf,
	@Default(null) SecurityMetadata? securityMetadata,
}) = _EncryptedDocument;