const mixinafJson::JsonConverter

afJson::JsonConverter

@Js

Implement to define a custom Fantom <-> JSON converter.

toFantom

Source

abstract Obj? toFantom(JsonConverterCtx ctx, Obj? jsonObj)

Converts the given jsonObj to its Fantom representation.

toJsonObj

Source

abstract Obj? toJsonObj(JsonConverterCtx ctx, Obj? fantomObj)

Converts the given fantomObj to its JSON representation.