mixinafJson::JsonConverterCtx
afJson::JsonConverterCtx
@
Js
Passed to JsonConverters
to them contextual information of the conversion in progress.
- fantomStack
abstract Obj?[]? fantomStack()
A stack of Fantom objects that represent the contextual parents of converted objects.
Only available when converting from Fantom.
- inspect
abstract JsonTypeMeta inspect(Type type)
Allows embedded types to be inspected and converted.
- jsonStack
abstract Obj?[]? jsonStack()
A stack of JSON objects that represent the contextual parents of converted objects.
Only available when converting from JSON.
- meta
JsonTypeMeta meta()
Returns the current
JsonTypeMeta
being converted. Convenience for:metaStack.last()
- metaStack
abstract JsonTypeMeta[] metaStack()
A stack of meta objects that represent the contextual parents of converted objects.
- toFantom
Obj? toFantom(JsonTypeMeta meta, Obj? jsonObj)
For use by
JsonConverters
to convert embedded objects. The given arguments are pushed on to their corresponding stacks so the conversion that follows may be performed in the proper context.- toJson
Obj? toJson(JsonTypeMeta meta, Obj? fantomObj)
For use by
JsonConverters
to convert embedded objects. The given arguments are pushed on to their corresponding stacks so the conversion that follows may be performed in the proper context.