Skip to content

Instantly share code, notes, and snippets.

@jeremyrempel
Created February 18, 2019 17:00
Show Gist options
  • Save jeremyrempel/ba0eda44c8b17e739fc643335d8fa562 to your computer and use it in GitHub Desktop.
Save jeremyrempel/ba0eda44c8b17e739fc643335d8fa562 to your computer and use it in GitHub Desktop.
@Serializable
data class PhotoResponse(val id: String, val description: String?, val exif: Exif?, val urls: Urls, val user: User) {
@Serializable
data class Exif(val make: String?, val model: String?)
@Serializable
data class Urls(val raw: String, val full: String, val regular: String, val thumb: String)
@Serializable
data class User(val username: String, @SerialName("first_name") val firstName: String, @SerialName("last_name") val lastName: String)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment