Annotation Type Json.Import


  • @Retention(CLASS)
    @Target({TYPE,PACKAGE})
    public static @interface Json.Import
    Specify types to generate JsonAdapters for.

    These types are typically in an external project / dependency or otherwise types that we can't or don't want to explicitly annotate with @Json.

    Typically, we put this annotation on a package.

    {@code
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      Class<?>[] value
      Specify types to generate Json Adapters for.
    • Element Detail

      • value

        Class<?>[] value
        Specify types to generate Json Adapters for.