Created
June 25, 2019 22:04
-
-
Save carlosgub/a8f5bba5672b47a2e01e56e509b8b8cf to your computer and use it in GitHub Desktop.
MOSHI RESPONSE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JsonClass(generateAdapter = true) | |
data class PostResponse( | |
/* @Json(name = "body")<- nombre en el json | |
* Se usa esto si quiero parsear el nombre del json con otro nombre, | |
* si se usara el mismo nombre no se usa*/ | |
val userId: Int, | |
val id: Int, | |
val title: String, | |
val body: String | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment