Annotation Type Expose


@Retention(RUNTIME) @Target(FIELD) public @interface Expose
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If true, the field marked with this annotation is deserialized from the JSON.
    boolean
    If true, the field marked with this annotation is written out in the JSON while serializing.
  • Element Details

    • serialize

      boolean serialize
      If true, the field marked with this annotation is written out in the JSON while serializing. If false, the field marked with this annotation is skipped from the serialized output. Defaults to true.
      Default:
      true
    • deserialize

      boolean deserialize
      If true, the field marked with this annotation is deserialized from the JSON. If false, the field marked with this annotation is skipped during deserialization. Defaults to true.
      Default:
      true