DecryptedDocument constructor

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

Implementation

const factory DecryptedDocument({
	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,
}) = _DecryptedDocument;