/** * Returns a new immutable Policy based on the given JSON object. * * @param jsonObject the JSON object representation of a Policy. * @return the new initialised {@code Policy}. * @throws NullPointerException if {@code jsonObject} is {@code null}. * @throws org.eclipse.ditto.model.base.exceptions.DittoJsonException if {@code jsonObject} cannot be parsed to * {@link Policy}. */ public static Policy newPolicy(final JsonObject jsonObject) { return ImmutablePolicy.fromJson(jsonObject); }