public static void marshal(JsonGenerator generator, TimeMeasure value) throws IOException { generator.writeString(value.toString()); }
/** * Unmarshal. * * @param parser the parser * @param instantNull the instant null * @param expectedClass the expected class * @return the time measure * @throws IOException Signals that an I/O exception has occurred. */ public static TimeMeasure unmarshal( JsonParser parser, @Nullable TimeMeasure instantNull, Class<TimeMeasure> expectedClass) throws IOException { return TimeMeasure.fromString(parser.getText()); }