public class EntityMetadataResultJsonSerializer extends Object
MetadataResult of TypeMetadataDescriptor type into a readable and processable
JSON representation and from a JSON String to an MetadataResult instance| Modifier and Type | Field and Description |
|---|---|
protected com.google.gson.Gson |
gson |
| Constructor and Description |
|---|
EntityMetadataResultJsonSerializer(boolean prettyPrint) |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.TypeMetadataDescriptor> |
deserialize(String result)
Deserializes a JSON representation of an
MetadataResult, to an actual instance of it. |
String |
serialize(org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.TypeMetadataDescriptor> result) |
public EntityMetadataResultJsonSerializer(boolean prettyPrint)
public String serialize(org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.TypeMetadataDescriptor> result)
result - the MetadataResult to be serializedString JSON representation of the MetadataResultpublic org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.TypeMetadataDescriptor> deserialize(String result)
MetadataResult, to an actual instance of it.result - the serialized MetadataResult in a String JSON representationMetadataResult based on the serialized JSONCopyright © 2022 MuleSoft, Inc.. All rights reserved.