# Interface ISerializer (1.73.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.73.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.ISerializer)
- [1.69.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.69.0/Google.Apis.ISerializer)
- [1.68.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.68.0/Google.Apis.ISerializer)
- [1.60.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.60.0/Google.Apis.ISerializer)
- [1.59.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.59.0/Google.Apis.ISerializer)
- [1.55.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.55.0/Google.Apis.ISerializer)
- [1.50.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.50.0/Google.Apis.ISerializer)

    public interface ISerializer

Serialization interface that supports serialize and deserialize methods.

## Namespace

[Google.Apis](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis)

## Assembly

Google.Apis.Core.dll

## Properties

### Format

    string Format { get; }

Gets the application format this serializer supports (e.g. "json", "xml", etc.).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

## Methods

### Deserialize(string, Type)

    object Deserialize(string input, Type type)

Deserializes the string into an object.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `input` | `https://learn.microsoft.com/dotnet/api/system.string` |
| `type` | `https://learn.microsoft.com/dotnet/api/system.type` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.object` |   |

### Deserialize\<T\>(Stream)

    T Deserialize<T>(Stream input)

Deserializes the stream into an object.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `input` | `https://learn.microsoft.com/dotnet/api/system.io.stream` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `T` |   |

| **Type Parameter** ||
|---|---|
| **Name** | **Description** |
| `T` |   |

### Deserialize\<T\>(string)

    T Deserialize<T>(string input)

Deserializes the string into an object.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `input` | `https://learn.microsoft.com/dotnet/api/system.string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `T` |   |

| **Type Parameter** ||
|---|---|
| **Name** | **Description** |
| `T` |   |

### Serialize(object)

    string Serialize(object obj)

Serializes the specified object into a string.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `obj` | `https://learn.microsoft.com/dotnet/api/system.object` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Serialize(object, Stream)

    void Serialize(object obj, Stream target)

Serializes the specified object into a Stream.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `obj` | `https://learn.microsoft.com/dotnet/api/system.object` |
| `target` | `https://learn.microsoft.com/dotnet/api/system.io.stream` |

## Extension Method

[Utilities.ThrowIfNull\<T\>(T, string)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Util.Utilities#Google_Apis_Util_Utilities_ThrowIfNull__1___0_System_String_)