Skip to content

Instantly share code, notes, and snippets.

@weverb2
Created January 23, 2019 02:33
Show Gist options
  • Save weverb2/4beb1ae418e64dd18d845ead9ec44946 to your computer and use it in GitHub Desktop.
Save weverb2/4beb1ae418e64dd18d845ead9ec44946 to your computer and use it in GitHub Desktop.
@JsonClass(generateAdapter = true)
data class Post(
@Json(name = "userId") val userId: Int,
@Json(name = "id") val id: Int,
@Json(name = "title") val title: String,
@Json(name = "body") val body: String
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment