This file contains hidden or 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
| import static JsonUtil.match; | |
| public class Example { | |
| class Pojo { | |
| String field1; | |
| int field2; | |
| } | |
| public Pojo toPojo(JsonValue val) { | |
| return match(val, new JsonMatch<Pojo>() { | |
| public Pojo matchDefault() { | |
| return null; |
OlderNewer