public final void writeNativeResponse(NativeResponse resp, JsonGenerator gen) throws IOException {
    gen.writeStartObject();
    if (factory().isRootNativeField()) {
      gen.writeObjectFieldStart("native");
    }
    writeNativeResponseFields(resp, gen);
    writeExtensions(resp, gen);
    if (factory().isRootNativeField()) {
      gen.writeEndObject();
    }
    gen.writeEndObject();
    gen.flush();
  }
public final void writeNativeResponse(NativeResponse resp, JsonGenerator gen) throws IOException {
    gen.writeStartObject();
    if (factory().isRootNativeField()) {
      gen.writeObjectFieldStart("native");
    }
    writeNativeResponseFields(resp, gen);
    writeExtensions(resp, gen);
    if (factory().isRootNativeField()) {
      gen.writeEndObject();
    }
    gen.writeEndObject();
    gen.flush();
  }
public final void writeNativeResponse ( NativeResponse resp , JsonGenerator gen ) throws IOException { gen . writeStartObject ( ) ; if ( factory ( ) . isRootNativeField ( ) ) { gen . writeObjectFieldStart ( "native" ) ; } writeNativeResponseFields ( resp , gen ) ; writeExtensions ( resp , gen ) ; if ( factory ( ) . isRootNativeField ( ) ) { gen . writeEndObject ( ) ; } gen . writeEndObject ( ) ; gen . flush ( ) ; }
Serializes a {@link NativeResponse} to JSON, with a provided {@link JsonGenerator}
which allows several choices of output and encoding.
Serializes a {