toggle menu
search in API
common
selfie-lib
/
com.diffplug.selfie
/
RoundtripJson
Roundtrip
Json
class
RoundtripJson
<
T
>
(
strategy
:
KSerializer
<
T
>
)
:
Roundtrip
<
T
,
String
>
Roundtrips the given type into pretty-printed Json.
Members
Constructors
Roundtrip
Json
Link copied to clipboard
constructor
(
strategy
:
KSerializer
<
T
>
)
Types
Companion
Link copied to clipboard
object
Companion
Functions
parse
Link copied to clipboard
open
override
fun
parse
(
serialized
:
String
)
:
T
serialize
Link copied to clipboard
open
override
fun
serialize
(
value
:
T
)
:
String