hunt ~v1.6.x (2022-05-12T11:27:03.6465239)
Dub
Repo
JsonSerializer.getItemAs
hunt
serialization
JsonSerializer
JsonSerializer
Undocumented in source. Be warned that the author may not have intended to support it.
class
JsonSerializer
static
T
getItemAs
(
T
bool
canThrow
= false
)
(
ref
const
(
JSONValue
)
json
,
string
name
,
T
defaultValue
=
T.init
)
if
(
!
is
(
T
==
void
)
)
Meta
Source
See Implementation
hunt
serialization
JsonSerializer
JsonSerializer
aliases
fromJson
static functions
deserializeObject
getItemAs
handleException
serializeObject
toJson
toJsonImpl
toObject