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