mixinafJson::JsonConverterCtx

afJson::JsonConverterCtx

@Js

Passed to JsonConverters to them contextual information of the conversion in progress.

fantomStack

Source

abstract Obj?[]? fantomStack()

A stack of Fantom objects that represent the contextual parents of converted objects.

Only available when converting from Fantom.

inspect

Source

abstract JsonTypeMeta inspect(Type type)

Allows embedded types to be inspected and converted.

jsonStack

Source

abstract Obj?[]? jsonStack()

A stack of JSON objects that represent the contextual parents of converted objects.

Only available when converting from JSON.

meta

Source

JsonTypeMeta meta()

Returns the current JsonTypeMeta being converted. Convenience for:

metaStack.last()
metaStack

Source

abstract JsonTypeMeta[] metaStack()

A stack of meta objects that represent the contextual parents of converted objects.

toFantom

Source

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

Source

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.