public class ParserAttributesJsonTypeAdapter extends Object implements com.google.gson.JsonSerializer<ParserAttributesDTO>, com.google.gson.JsonDeserializer<ParserAttributesDTO>
ParserAttributesDTO instances. Will take care of serializing the type of each value in order to be
able to replicate the same type of instance on deserialization.| Constructor and Description |
|---|
ParserAttributesJsonTypeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
ParserAttributesDTO |
deserialize(com.google.gson.JsonElement jsonElement,
Type type,
com.google.gson.JsonDeserializationContext jsonDeserializationContext) |
com.google.gson.JsonElement |
serialize(ParserAttributesDTO parserAttributesDTO,
Type type,
com.google.gson.JsonSerializationContext jsonSerializationContext) |
public ParserAttributesDTO deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException
deserialize in interface com.google.gson.JsonDeserializer<ParserAttributesDTO>com.google.gson.JsonParseExceptionpublic com.google.gson.JsonElement serialize(ParserAttributesDTO parserAttributesDTO, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
serialize in interface com.google.gson.JsonSerializer<ParserAttributesDTO>Copyright © 2022 MuleSoft, Inc.. All rights reserved.