encode static method

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

Implementation

static Map<String, dynamic> encode(Address value) {
	switch (value) {
		case EncryptedAddress entity:
			Map<String, dynamic> entityJson = EncryptedAddress.encode(entity);
			entityJson["kotlinType"] = "com.icure.cardinal.sdk.model.embed.EncryptedAddress";
			return entityJson;
		case DecryptedAddress entity:
			Map<String, dynamic> entityJson = DecryptedAddress.encode(entity);
			entityJson["kotlinType"] = "com.icure.cardinal.sdk.model.embed.DecryptedAddress";
			return entityJson;
	}
}