I want to convert a string to type in scala. Follwoing code is representing the use case.
type a = Product val product_response = client.getProducta
I want to make this code general for any request, for example
type a = "Product".toType // Interested to know how to convert String to type val RequestURL = "/products" val response = client.getRequest[a](id, RequestURL)
Aucun commentaire:
Enregistrer un commentaire