tw.yukina.notion.sdk.model.deserializer.ZonedDateTimeDeserializer Maven / Gradle / Ivy
package tw.yukina.notion.sdk.model.deserializer;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import java.io.IOException;
import java.time.ZonedDateTime;
public class ZonedDateTimeDeserializer extends JsonDeserializer {
@Override
public ZonedDateTime deserialize(JsonParser jsonParser,
DeserializationContext deserializationContext) throws IOException {
return ZonedDateTime.parse(jsonParser.getText());
}
}