http4k
Toggle table of contents
6.55.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
http4k
http4k-format-moshi
/
org.http4k.format
/
MoshiObject
Moshi
Object
data
class
MoshiObject
(
val
attributes
:
MutableMap
<
String
,
MoshiNode
>
)
:
MoshiNode
(
source
)
Members
Members & Extensions
Constructors
Moshi
Object
Link copied to clipboard
constructor
(
attributes
:
MutableMap
<
String
,
MoshiNode
>
)
constructor
(
vararg
attributes
:
Pair
<
String
,
MoshiNode
>
)
Properties
attributes
Link copied to clipboard
val
attributes
:
MutableMap
<
String
,
MoshiNode
>
Functions
as
A
Link copied to clipboard
@
JvmName
(
name
=
"nodeAsA"
)
fun
<
T
:
Any
>
MoshiNode
.
asA
(
target
:
KClass
<
T
>
)
:
T
as
Compact
Json
String
Link copied to clipboard
open
override
fun
MoshiNode
.
asCompactJsonString
(
)
:
String
as
Pretty
Json
String
Link copied to clipboard
open
override
fun
MoshiNode
.
asPrettyJsonString
(
)
:
String
get
Link copied to clipboard
operator
fun
get
(
name
:
String
)
:
MoshiNode
?
unwrap
Link copied to clipboard
fun
MoshiNode
.
unwrap
(
)
:
Any
?