const mixinafJson::JsonConverter

afJson::JsonConverter

@Js

Implement to define a custom Fantom Obj <-> JsonObj converter.

toFantom

Source

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

Converts the given jsonObj to a Fantom entity.

toJsonObj

Source

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

Converts the given entity to its JSON representation.