vncore / com.venuenext.vncore.protocol / SerializerInterface

SerializerInterface

interface SerializerInterface

SerializerInterface VenueNext

Created on 2/19/19. Copyright © 2019 VenueNext Inc. All rights reserved.

Parameters

T - the type of serialized result data.

Functions

parse

Serializes JSON string to T object.

abstract fun <T> parse(jsonString: String, serializer: KSerializer<T>?): T?

stringify

Stringify's JSON string to T object.

abstract fun <T> stringify(obj: T, serializer: KSerializer<T>): String

stringifyToBytes

Stringify's JSON string to T object.

abstract fun <T> stringifyToBytes(obj: T, serializer: KSerializer<T>): ByteArray

Inheritors

JsonSerializer

JsonSerializer VenueNext

object JsonSerializer : SerializerInterface