Scott Selikoff wrote:Any ideas?
I have never used this library, but after some googling I found
this SO question which suggests to create a parametrized wrapper class which you can then use in the
fromJson call.
So this wrapper class would look like
And then
you should be able to use this
getUsingGeneric method
I don't have tested it myself, so I don't know if it works. But if it does, it's a very nice and clean solution in my opinion.
Hope it helps!
Kind regards,
Roel