public final class TypeAnnotationSerializer extends Object
TypeAnnotation.| Constructor and Description |
|---|
TypeAnnotationSerializer(Map<String,Class<? extends TypeAnnotation>> stingClassMapping,
Collection<Object> additionalFeatures,
TypeAnnotationSerializerExtenderFallback typeAnnotationSerializerExtenderFallback) |
| Modifier and Type | Method and Description |
|---|---|
<T extends TypeAnnotation> |
deserialize(String typeAnnotationName,
String json)
Deserializes a
TypeAnnotation implementation. |
public TypeAnnotationSerializer(Map<String,Class<? extends TypeAnnotation>> stingClassMapping, Collection<Object> additionalFeatures, TypeAnnotationSerializerExtenderFallback typeAnnotationSerializerExtenderFallback)
public <T extends TypeAnnotation> Optional<T> deserialize(String typeAnnotationName, String json)
TypeAnnotation implementation.typeAnnotationName - name of the TypeAnnotation that match with TypeAnnotation.getName() or
their full qualifier class namejson - String representation of the serialized TypeAnnotationOptional with the deserialized TypeAnnotation in case that the deserialization
could not be done, Optional.empty() will be returnedCopyright © 2022 MuleSoft, Inc.. All rights reserved.