hunt v1.6.15 (2021-07-30T03:29:57Z)
Home
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