All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.smartling.api.contexts.v2.pto.AsyncProcessResultPTODeserializer Maven / Gradle / Ivy

There is a newer version: 1.16.0
Show newest version
package com.smartling.api.contexts.v2.pto;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;

public class AsyncProcessResultPTODeserializer extends JsonDeserializer
{
    @Override
    public AsyncProcessResultPTO deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException
    {
        ObjectMapper mapper = (ObjectMapper) jsonParser.getCodec();
        return mapper.readValue(jsonParser, MatchAsyncProcessResultPTO.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy