encode static method

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

Implementation

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