# WebSerializer

Artifact: [androidx.datastore:datastore-core-okio](https://developer.android.com/jetpack/androidx/releases/datastore) [View Source](https://cs.android.com/search?q=file:androidx/datastore/core/okio/WebSerializer.web.kt+class:androidx.datastore.core.okio.WebSerializer)

*** ** * ** ***


```
public final class WebSerializer<T extends Object> implements OkioSerializer<@NonNull T>
```

<br />

*** ** * ** ***

A Serializer that uses kotlinx.serialization.json to convert any @Serializable data class T to and from a byte stream using Okio.

| Parameters |
|---|---|
| `<T extends https://developer.android.com/reference/java/lang/Object.html>` | The data type to serialize. Must be annotated with @Serializable. |