Json

@Retention(value = )
annotation class Json

Customizes how a field is encoded as JSON.

Although this annotation doesn't declare a Target, it is only honored in the following elements:

  • Java class fields
  • Kotlin properties for use with {@code moshi-kotlin}. This includes both properties declared in the constructor and properties declared as members.

Users of the AutoValue: Moshi Extension may also use this annotation on abstract getters.

Functions

annotationType
Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
equals
Link copied to clipboard
abstract fun equals(p: Any): Boolean
hashCode
Link copied to clipboard
abstract fun hashCode(): Int
name
Link copied to clipboard
abstract fun name(): String
toString
Link copied to clipboard
abstract fun toString(): String