encode static method

Map<String, dynamic> encode(
  1. EncryptedMessage value
)
override

Implementation

static Map<String, dynamic> encode(EncryptedMessage value) {
	Map<String, dynamic> entityAsMap = {
		"id" : value.id,
		"rev" : value.rev,
		"created" : value.created,
		"modified" : value.modified,
		"author" : value.author,
		"responsible" : value.responsible,
		"medicalLocationId" : value.medicalLocationId,
		"tags" : value.tags.map((x0) => CodeStub.encode(x0)).toList(),
		"codes" : value.codes.map((x0) => CodeStub.encode(x0)).toList(),
		"endOfLife" : value.endOfLife,
		"deletionDate" : value.deletionDate,
		"fromAddress" : value.fromAddress,
		"fromHealthcarePartyId" : value.fromHealthcarePartyId,
		"formId" : value.formId,
		"status" : value.status,
		"recipientsType" : value.recipientsType,
		"recipients" : value.recipients.map((x0) => x0).toList(),
		"toAddresses" : value.toAddresses.map((x0) => x0).toList(),
		"received" : value.received,
		"sent" : value.sent,
		"metas" : value.metas.map((k0, v0) => MapEntry(k0, v0)),
		"readStatus" : value.readStatus.map((k0, v0) => MapEntry(k0, MessageReadStatus.encode(v0))),
		"messageAttachments" : value.messageAttachments.map((x0) => MessageAttachment.encode(x0)).toList(),
		"transportGuid" : value.transportGuid,
		"remark" : value.remark,
		"conversationGuid" : value.conversationGuid,
		"subject" : value.subject,
		"invoiceIds" : value.invoiceIds.map((x0) => x0).toList(),
		"parentId" : value.parentId,
		"externalRef" : value.externalRef,
		"unassignedResults" : value.unassignedResults.map((x0) => x0).toList(),
		"assignedResults" : value.assignedResults.map((k0, v0) => MapEntry(k0, v0)),
		"senderReferences" : value.senderReferences.map((k0, v0) => MapEntry(k0, v0)),
		"secretForeignKeys" : value.secretForeignKeys.map((x0) => x0).toList(),
		"cryptedForeignKeys" : value.cryptedForeignKeys.map((k0, v0) => MapEntry(k0, v0.map((x1) => Delegation.encode(x1)).toList())),
		"delegations" : value.delegations.map((k0, v0) => MapEntry(k0, v0.map((x1) => Delegation.encode(x1)).toList())),
		"encryptionKeys" : value.encryptionKeys.map((k0, v0) => MapEntry(k0, v0.map((x1) => Delegation.encode(x1)).toList())),
		"encryptedSelf" : value.encryptedSelf,
		"securityMetadata" : value.securityMetadata == null ? null : SecurityMetadata.encode(value.securityMetadata!)
	};
	return entityAsMap;
}