Configuration parameter for JsonCodecMaker.make() call.
Configuration parameter for JsonCodecMaker.make() call.
BEWARE: a parameter of the make macro should not depend on code from the same compilation module where it is called.
Use a separated submodule of the project to compile all such dependencies before their usage for generation of codecs.
Examples of fieldNameMapper, javaEnumValueNameMapper, and adtLeafClassNameMapper functions that have no
dependencies in the same compilation module are: JsonCodecMaker.enforceCamelCase, JsonCodecMaker.enforce_snake_case,
JsonCodecMaker.enforce-kebab-case, and JsonCodecMaker.simpleClassName. Or their composition like:
s => JsonCodecMaker.enforce_snake_case(JsonCodecMaker.simpleClassName(s))
final classnamed extends Annotation with StaticAnnotation
Annotations
@field()
final classstringified extends Annotation with StaticAnnotation
Annotations
@field()
final classtransient extends Annotation with StaticAnnotation
Configuration parameter for
JsonCodecMaker.make()
call.BEWARE: a parameter of the
make
macro should not depend on code from the same compilation module where it is called. Use a separated submodule of the project to compile all such dependencies before their usage for generation of codecs.Examples of
fieldNameMapper
,javaEnumValueNameMapper
, andadtLeafClassNameMapper
functions that have no dependencies in the same compilation module are:JsonCodecMaker.enforceCamelCase
,JsonCodecMaker.enforce_snake_case
,JsonCodecMaker.enforce-kebab-case
, andJsonCodecMaker.simpleClassName
. Or their composition like:s => JsonCodecMaker.enforce_snake_case(JsonCodecMaker.simpleClassName(s))