UriSerializer

class UriSerializer : KSerializer<Uri>

A serializer for an instance of Uri. The instance will be serialized by encoding it as a String. It will be deserialized by parsing the string to a Uri object.

Constructors

Link copied to clipboard
fun UriSerializer()

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): Uri
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: Uri)

Properties

Link copied to clipboard
abstract override val descriptor: SerialDescriptor