Is there a way to avoid reflection in Gson? I know that when you will use registerTypeAdapter
you can avoid it, but if you use @SerializedName("name")
annotation on class member, can you avoid id too?
You can use Autovalue and Autovalue-gson that will create a reflection free adapter for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With