Skip to content

Instantly share code, notes, and snippets.

@monday8am
Last active April 20, 2018 16:49
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/8370a8f1f3135c32d6c358b1065770c2 to your computer and use it in GitHub Desktop.
Save monday8am/8370a8f1f3135c32d6c358b1065770c2 to your computer and use it in GitHub Desktop.
Result serializer empty
class ResultSerializer : JsonSerializer<Result<*, *>>, JsonDeserializer<Result<*, *>> {
override fun serialize(src: Result<*, *>?,
typeOfSrc: Type?,
context: JsonSerializationContext?): JsonElement? {
// TODO
}
override fun deserialize(json: JsonElement?,
typeOfT: Type?,
context: JsonDeserializationContext?): Result<*, *>? {
// TODO
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment