moshi
1.14.0
moshi
/
com.squareup.moshi
/
JsonClass
Json
Class
@
Retention
(
value
=
RUNTIME
)
@
Documented
annotation class
JsonClass
Content copied to clipboard
Customizes how a type is encoded as JSON.
Functions
Functions
annotation
Type
Link copied to clipboard
abstract
fun
annotationType
(
)
:
Class
<
out
Annotation
>
Content copied to clipboard
equals
Link copied to clipboard
abstract
fun
equals
(
p
:
Any
)
:
Boolean
Content copied to clipboard
generate
Adapter
Link copied to clipboard
abstract
fun
generateAdapter
(
)
:
Boolean
Content copied to clipboard
True to trigger the annotation processor to generate an adapter for this type.
generator
Link copied to clipboard
abstract
fun
generator
(
)
:
String
Content copied to clipboard
An optional custom generator tag used to indicate which generator should be used.
hash
Code
Link copied to clipboard
abstract
fun
hashCode
(
)
:
Int
Content copied to clipboard
to
String
Link copied to clipboard
abstract
fun
toString
(
)
:
String
Content copied to clipboard