encode static method

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

Implementation

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