encode static method

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

Implementation

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