Interface ITableauSerializer
Interface for an object that can serialize to and from common Tableau API formats.
Namespace: Tableau.Migration.Net
Assembly: Tableau.Migration.dll
Syntax
public interface ITableauSerializer
Methods
DeserializeFromJson<T>(ReadOnlySpan<byte>)
Deserializes the given JSON.
Declaration
T? DeserializeFromJson<T>(ReadOnlySpan<byte> utf8Json)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<byte> | utf8Json | The JSON to deserialize. |
Returns
Type | Description |
---|---|
T | The deserialized |
Type Parameters
Name | Description |
---|---|
T | The type to deserialize to. |
DeserializeFromJson<T>(string)
Deserializes the given JSON.
Declaration
T? DeserializeFromJson<T>(string json)
Parameters
Type | Name | Description |
---|---|---|
string | json | The JSON to deserialize. |
Returns
Type | Description |
---|---|
T | The deserialized |
Type Parameters
Name | Description |
---|---|
T | The type to deserialize to. |
DeserializeFromXml<T>(string)
Deserializes the given XML.
Declaration
T? DeserializeFromXml<T>(string xml)
Parameters
Type | Name | Description |
---|---|---|
string | xml | The XML to deserialize. |
Returns
Type | Description |
---|---|
T | The deserialized |
Type Parameters
Name | Description |
---|---|
T | The type to deserialize to. |
SerializeToJson<T>(T)
Serializes the specified object to an JSON string.
Declaration
string SerializeToJson<T>(T obj) where T : class
Parameters
Type | Name | Description |
---|---|---|
T | obj | The object to serialize. |
Returns
Type | Description |
---|---|
string | A serialized string for the specified object. |
Type Parameters
Name | Description |
---|---|
T | The type to serialize. |
SerializeToXml<T>(T)
Serializes the specified object to an XML string.
Declaration
string SerializeToXml<T>(T obj) where T : class
Parameters
Type | Name | Description |
---|---|---|
T | obj | The object to serialize. |
Returns
Type | Description |
---|---|
string | A serialized string for the specified object. |
Type Parameters
Name | Description |
---|---|
T | The type to serialize. |