Skip to content

Instantly share code, notes, and snippets.

@carlosgub
Created June 25, 2019 22:04
Show Gist options
  • Save carlosgub/a8f5bba5672b47a2e01e56e509b8b8cf to your computer and use it in GitHub Desktop.
Save carlosgub/a8f5bba5672b47a2e01e56e509b8b8cf to your computer and use it in GitHub Desktop.
MOSHI RESPONSE
@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