Skip to content

Instantly share code, notes, and snippets.

@monday8am
Last active April 17, 2018 20:10
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 monday8am/fa98275257ccb7b3dee5bb92e408af7e to your computer and use it in GitHub Desktop.
Save monday8am/fa98275257ccb7b3dee5bb92e408af7e to your computer and use it in GitHub Desktop.
TypeHierarchy adapter demostration
val gson = GsonBuilder()
.registerTypeHierarchyAdapter(Result::class.java, ResultSerializer())
.create()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment