classafJson::JsonConverterCtx
sys::Obj afJson::JsonConverterCtx
@
Js
Passed to JsonConverters
to give context on what they're converting.
JsonConverters converters { private set }
const Field? field
Obj? fromJsonVal()
Uses this context to convert
this.obj
.const Bool isField
const Bool isList
const Bool isMap
Bool isTopLevel()
const JsonProperty? jsonProperty
List? list { private set }
const Int? listIdx
This makeField(Type type, Field field, JsonProperty? jsonProperty, Obj? obj)
Map? map { private set }
const Obj? mapKey
Obj? obj { private set }
JsonConverterCtx? parent { private set }
Void replaceType(Type newType)
Replace
type
with a more specific subclass type.Obj? toJsonVal()
Uses this context to convert
this.obj
.Type type { private set }