Last active
April 20, 2018 16:49
-
-
Save monday8am/8370a8f1f3135c32d6c358b1065770c2 to your computer and use it in GitHub Desktop.
Result serializer empty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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