Skip to content

Instantly share code, notes, and snippets.

@Alqueraf
Last active June 15, 2020 14:23
Show Gist options
  • Save Alqueraf/32fd53ee90681497b264824acb23eb36 to your computer and use it in GitHub Desktop.
Save Alqueraf/32fd53ee90681497b264824acb23eb36 to your computer and use it in GitHub Desktop.
Model example
@Serializable
data class Item(
val id: Int,
@SerialName(value = "title") val title: String? = null,
val description: String? = null,
@SerialName(value = "image_url") val imageUrl: String? = null,
@SerialName(value = "is_featured") val isFeatured: Boolean? = null,
@SerialName(value = "publication_date") val publicationDateString: String? = null,
@SerialName(value = "share_link") val shareUrl: String? = null
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment