generatedJsonAdapterName

open fun generatedJsonAdapterName(clazz: Class<out Any>): String

Resolves the generated JsonAdapter fully qualified class name for a given JsonClass-annotated{@code clazz}. This is the same lookup logic used by both theMoshi code generation as well as lookup for any JsonClass-annotated classes. This can be usefulif generating your own JsonAdapters without using Moshi's first party code gen.

Return

the resolved fully qualified class name to the expected generated JsonAdapter class.Note that this name will always be a top-level class name and not a nested class.

Parameters

clazz

the class to calculate a generated JsonAdapter name for.

open fun generatedJsonAdapterName(className: String): String

Resolves the generated JsonAdapter fully qualified class name for a given JsonClass-annotated{@code className}. This is the same lookup logic used by boththe Moshi code generation as well as lookup for any JsonClass-annotated classes. This can beuseful if generating your own JsonAdapters without using Moshi's first party code gen.

Return

the resolved fully qualified class name to the expected generated JsonAdapter class.Note that this name will always be a top-level class name and not a nested class.

Parameters

className

the fully qualified class to calculate a generated JsonAdapter name for.