encode static method

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

Implementation

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