Open SujathaKR625 opened 3 months ago
Can you say a bit more about what you'd like to do? I'm not sure if you mean GSon's TypeAdapterFactory for example.
Yes. I am using Measure
The json content has weight: 1000.0,height : 8 like that.
I tried to write a typeadapter facory class MeasureTypeAdapterFactory : TypeAdapterFactory {
override fun
But it is not working as expected.
The json should parse and become a object in kotlin data class Dimensions {
val height: Measure
The one I implemented is not correct. Can you please help with it. I am not able to find good examples as well.
Are you working in Kotlin or Java? If Kotlin, are you able to use Kotlin serialization, or is GSon a requirement?
If we want to register type adapter for the type how to create it?