Class: BaseSerializer<From, To, SerializationOptions, DeserializationOptions>
Type parameters​
Name | Type |
---|---|
From | From |
To | To |
SerializationOptions | unknown |
DeserializationOptions | unknown |
Hierarchy​
BaseSerializer
↳
DateSerializer
↳
NumberSerializer
↳
StringSerializer
Implements​
Serializer
<From
,To
,SerializationOptions
,DeserializationOptions
>
Constructors​
constructor​
• new BaseSerializer<From
, To
, SerializationOptions
, DeserializationOptions
>(settings?
)
Type parameters​
Name | Type |
---|---|
From | From |
To | To |
SerializationOptions | unknown |
DeserializationOptions | unknown |
Parameters​
Name | Type |
---|---|
settings? | Object |
settings.deserializationOptions? | DeserializationOptions |
settings.serializationOptions? | SerializationOptions |
settings.serializerFor? | SerializerForFn <Serializer <unknown , unknown , unknown , unknown >> |
Defined in​
Properties​
serializerFor​
• Optional
serializerFor: SerializerForFn
<Serializer
<unknown
, unknown
, unknown
, unknown
>>
Defined in​
Methods​
deserialize​
â–¸ Abstract
deserialize(arg
, options?
): From
Parameters​
Name | Type |
---|---|
arg | To |
options? | DeserializationOptions |
Returns​
From
Implementation of​
Defined in​
serialize​
â–¸ Abstract
serialize(arg
, options?
): To
Parameters​
Name | Type |
---|---|
arg | From |
options? | SerializationOptions |
Returns​
To