Skip to content

Instantly share code, notes, and snippets.

@aleksandarzekovic
Last active July 9, 2022 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aleksandarzekovic/a60c24762ab30e10db59c1aac3fc4e9e to your computer and use it in GitHub Desktop.
Save aleksandarzekovic/a60c24762ab30e10db59c1aac3fc4e9e to your computer and use it in GitHub Desktop.
@JsonClass(generateAdapter = true)
data class Vehicle(
@Json(name = "type") val type: VehicleType,
@Json(name = "waterCannon") val waterCannon: Boolean?,
@Json(name = "wingsSpanInMetres") val wingsSpanInMetres: Int?
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment