https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
t

Tolriq

01/08/2023, 1:54 PM
Is there a standard moshi annotation to handle field alias name? Like I talk to many servers, most return their version in a version field but one in xxxVersion field. Currently using another optional field and deal with the case later. But wonder if there's a more moshi native approach.
j

jessewilson

01/08/2023, 3:07 PM
Nope! What you’re doing is right
It’s more syntax but also zero magic
t

Tolriq

01/08/2023, 3:15 PM
Ok thanks.
6 Views