Class UsagePointGeneralDataListDeserializer
java.lang.Object
tools.jackson.databind.ValueDeserializer<List<UsagePointGeneralData>>
energy.eddie.regionconnector.fr.enedis.dto.address.UsagePointGeneralDataListDeserializer
- All Implemented Interfaces:
tools.jackson.databind.deser.NullValueProvider
public class UsagePointGeneralDataListDeserializer
extends tools.jackson.databind.ValueDeserializer<List<UsagePointGeneralData>>
Reads the données générales response whether Enedis wraps it in an array or sends a bare object.
The published Swagger documents an object, but the sibling situation contractuelle API turned out to return an array despite its own documentation, so both shapes are accepted.
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.ValueDeserializer
tools.jackson.databind.ValueDeserializer.None -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt) Methods inherited from class tools.jackson.databind.ValueDeserializer
createContextual, deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, resolve, supportsUpdate, unwrappingDeserializer
-
Constructor Details
-
UsagePointGeneralDataListDeserializer
public UsagePointGeneralDataListDeserializer()
-
-
Method Details
-
deserialize
public List<UsagePointGeneralData> deserialize(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt) - Specified by:
deserializein classtools.jackson.databind.ValueDeserializer<List<UsagePointGeneralData>>
-