Created
February 18, 2019 17:00
-
-
Save jeremyrempel/ba0eda44c8b17e739fc643335d8fa562 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@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