toggle menu
cache
jvm
switch theme
search in API
moshi
/
com.kroger.moshi
/
MoshiCacheSerializer
Moshi
Cache
Serializer
class
MoshiCacheSerializer
<
T
>
@
Inject
constructor
(
adapter
:
JsonAdapter
<
T
>
)
:
CacheSerializer
<
T
>
Implementation of
CacheSerializer
for
Moshi
Members
Constructors
Moshi
Cache
Serializer
Link copied to clipboard
@
Inject
constructor
(
adapter
:
JsonAdapter
<
T
>
)
Functions
decode
From
Byte
Array
Link copied to clipboard
open
override
fun
decodeFromByteArray
(
bytes
:
ByteArray
?
)
:
T
?
to
Byte
Array
Link copied to clipboard
open
override
fun
toByteArray
(
data
:
T
?
)
:
ByteArray