toggle menu
Signum
3.12.0
common
switch theme
search in API
indispensable
/
at.asitplus.signum.indispensable.io
/
TransformingSerializerTemplate
Transforming
Serializer
Template
open
class
TransformingSerializerTemplate
<
ValueT
,
EncodedT
>
(
parent
:
KSerializer
<
EncodedT
>
,
encodeAs
:
(
ValueT
)
->
EncodedT
,
decodeAs
:
(
EncodedT
)
->
ValueT
,
serialName
:
String
=
""
)
:
TemplateSerializer
<
ValueT
>
(
source
)
Inheritors
ByteArrayBase64Serializer
ByteArrayBase64UrlSerializer
X509CertificateBase64UrlSerializer
IosPublicKeySerializer
Members
Constructors
Transforming
Serializer
Template
Link copied to clipboard
constructor
(
parent
:
KSerializer
<
EncodedT
>
,
encodeAs
:
(
ValueT
)
->
EncodedT
,
decodeAs
:
(
EncodedT
)
->
ValueT
,
serialName
:
String
=
""
)
Properties
descriptor
Link copied to clipboard
open
override
val
descriptor
:
SerialDescriptor
Functions
deserialize
Link copied to clipboard
open
override
fun
deserialize
(
decoder
:
Decoder
)
:
ValueT
serialize
Link copied to clipboard
open
override
fun
serialize
(
encoder
:
Encoder
,
value
:
ValueT
)