Skip to content

Instantly share code, notes, and snippets.

@jutikorn
Last active December 7, 2018 12:12
Show Gist options
  • Save jutikorn/63aa4065ad7497ccbdbb5de77e3eff71 to your computer and use it in GitHub Desktop.
Save jutikorn/63aa4065ad7497ccbdbb5de77e3eff71 to your computer and use it in GitHub Desktop.
import com.google.gson.annotations.SerializedName
// https://jsonplaceholder.typicode.com/todo/1
class Todo(
@SerializedName("userId") val userId: Int,
@SerializedName("id") val id: Int,
@SerializedName("title") val title: String,
@SerializedName("completed") val completed: Boolean
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment