encode static method

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

Implementation

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