Skip to content

Instantly share code, notes, and snippets.

@ravidsrk
Last active July 31, 2017 19:23
Show Gist options
  • Save ravidsrk/fb72fe90a77042ed43b1e86bd141a616 to your computer and use it in GitHub Desktop.
Save ravidsrk/fb72fe90a77042ed43b1e86bd141a616 to your computer and use it in GitHub Desktop.
// Kotlin class
class DemoResponse {
@SerializedName("message") var message: String? = null
}
// Typecasting to String
mainView?.displayMessageFromApi(demoResponse.message as String)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment