Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @JsonClass(generateAdapter = true)
- data class CommonResponse<T>(val result: T?)
- {
- "result": {
- "bar": 1
- }
- }
- data class Foo(val bar: Int)
- interface {
- @Path("/foo")
- fun getFoo(): CommonResponse<Foo>
- }
- {
- "result": {}
- }
- {
- "result": {
- "bar": null
- }
- }
- {
- "result": {}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement