Skip to content

Instantly share code, notes, and snippets.

@carolinemusyoka
Created September 10, 2020 01:10
Show Gist options
  • Save carolinemusyoka/136c8cebc9daec4c4ec771baf981bccc to your computer and use it in GitHub Desktop.
Save carolinemusyoka/136c8cebc9daec4c4ec771baf981bccc to your computer and use it in GitHub Desktop.
import com.google.gson.annotations.SerializedName
data class Hero(
@SerializedName("id")
val id: Long,
@SerializedName("name")
val name: String,
@SerializedName("slug")
val slug: String,
@SerializedName("powerstats")
val powerStat: PowerStat,
@SerializedName("appearance")
val appearance: Appearance,
@SerializedName("biography")
val biography: Biography,
@SerializedName("work")
val work: Work,
@SerializedName("connections")
val connection: Connection,
@SerializedName("images")
val image: Image
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment