encode static method

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

Implementation

static Map<String, dynamic> encode(EncryptedService value) {
	Map<String, dynamic> entityAsMap = {
		"id" : value.id,
		"transactionId" : value.transactionId,
		"identifier" : value.identifier.map((x0) => Identifier.encode(x0)).toList(),
		"contactId" : value.contactId,
		"subContactIds" : value.subContactIds?.map((x0) => x0).toList(),
		"plansOfActionIds" : value.plansOfActionIds?.map((x0) => x0).toList(),
		"healthElementsIds" : value.healthElementsIds?.map((x0) => x0).toList(),
		"formIds" : value.formIds?.map((x0) => x0).toList(),
		"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())),
		"label" : value.label,
		"index" : value.index,
		"content" : value.content.map((k0, v0) => MapEntry(k0, EncryptedContent.encode(v0))),
		"encryptedContent" : value.encryptedContent,
		"textIndexes" : value.textIndexes.map((k0, v0) => MapEntry(k0, v0)),
		"valueDate" : value.valueDate,
		"openingDate" : value.openingDate,
		"closingDate" : value.closingDate,
		"formId" : value.formId,
		"created" : value.created,
		"modified" : value.modified,
		"endOfLife" : value.endOfLife,
		"author" : value.author,
		"responsible" : value.responsible,
		"medicalLocationId" : value.medicalLocationId,
		"comment" : value.comment,
		"status" : value.status,
		"invoicingCodes" : value.invoicingCodes.map((x0) => x0).toList(),
		"notes" : value.notes.map((x0) => Annotation.encode(x0)).toList(),
		"qualifiedLinks" : value.qualifiedLinks.map((k0, v0) => MapEntry(LinkQualification.encode(k0), v0.map((k1, v1) => MapEntry(k1, v1)))),
		"codes" : value.codes.map((x0) => CodeStub.encode(x0)).toList(),
		"tags" : value.tags.map((x0) => CodeStub.encode(x0)).toList(),
		"encryptedSelf" : value.encryptedSelf,
		"securityMetadata" : value.securityMetadata == null ? null : SecurityMetadata.encode(value.securityMetadata!)
	};
	return entityAsMap;
}