com.targomo.client.api.json.DefaultTargetCoordinateMapDeserializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java client library for easy usage of Targomo web services.
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