encode static method

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

Implementation

static Map<String, dynamic> encode(EntityWithEncryptionMetadataStub value) {
	Map<String, dynamic> entityAsMap = {
		"id" : value.id,
		"rev" : value.rev,
		"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())),
		"securityMetadata" : value.securityMetadata == null ? null : SecurityMetadata.encode(value.securityMetadata!)
	};
	return entityAsMap;
}