| Modifier and Type | Method and Description |
|---|---|
static ErrorTypeSerializer |
create()
Creates a new instance of the
ErrorTypeSerializer. |
ErrorType |
deserialize(String errorType)
Deserializes a JSON representation of an
ErrorType, to an actual instance of it. |
String |
serialize(ErrorType errorType)
Serializes an
ErrorType into JSON |
public static ErrorTypeSerializer create()
ErrorTypeSerializer.
This serializer is capable of serializing and deserializing ErrorType
from JSON (deserialize(String) and to JSON ( serialize(ErrorType)public String serialize(ErrorType errorType) throws IOException
ErrorType into JSONerrorType - ErrorType to be serializedString JSON representation of the ErrorTypeIOExceptionCopyright © 2017 MuleSoft, Inc.. All rights reserved.