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

com.targomo.client.api.json.DefaultTargetCoordinateMapDeserializer Maven / Gradle / Ivy

The newest version!
package com.targomo.client.api.json;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.targomo.client.api.geo.DefaultTargetCoordinate;

import java.io.IOException;
import java.util.Map;

/**
 * Created by gerb on 01/02/2017.
 */

public class DefaultTargetCoordinateMapDeserializer extends AbstractLocationMapDeserializer {

    private ObjectMapper mapper = new ObjectMapper();

    public DefaultTargetCoordinateMapDeserializer() {}

    @Override
    public Map deserialize(JsonParser jsonParser, DeserializationContext deserializationContext)
            throws IOException {
        return deserialize("id", jsonParser, DefaultTargetCoordinate.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy