/** * Returns a new instance of {@code DittoHeadersBuilder} initialized with the the properties of the given * {@code jsonObject}. * * @param jsonObject the JSON object which provides the initial properties of the builder. * @return a builder for creating {@code DittoHeaders} object. * @throws NullPointerException if {@code jsonObject} is {@code null}. */ static DefaultDittoHeadersBuilder of(final JsonObject jsonObject) { return of(toMap(jsonObject)); }
/** * Returns a new instance of {@code DittoHeadersBuilder} initialized with the the properties of the given * {@code jsonObject}. * * @param jsonObject the JSON object which provides the initial properties of the builder. * @return a builder for creating {@code DittoHeaders} object. * @throws NullPointerException if {@code jsonObject} is {@code null}. */ static DefaultDittoHeadersBuilder of(final JsonObject jsonObject) { return of(toMap(jsonObject)); }