Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom serialization names #127

Open
JorgeCastilloPrz opened this issue Oct 3, 2019 · 0 comments
Open

Add support for custom serialization names #127

JorgeCastilloPrz opened this issue Oct 3, 2019 · 0 comments

Comments

@JorgeCastilloPrz
Copy link

JorgeCastilloPrz commented Oct 3, 2019

Ideally you'd be able to provide custom serialization names as you do for other libraries like:

data class MyClass(
    @SerializedName("user_id") val id: String,
    @SerializedName("user_name") val name: String,
    val lastName: String,
    val mail: String
)

That helps when you want to name your properties differently than in the json, which is a common use case.

@JorgeCastilloPrz JorgeCastilloPrz changed the title Add support for serialization names Add support for custom serialization names Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant