/** * Creates a new {@code TargetMetrics} object from the specified JSON object. * * @param jsonObject a JSON object which provides the data for the Connection to be created. * @return a new TargetMetrics which is initialised with the extracted data from {@code jsonObject}. * @throws NullPointerException if {@code jsonObject} is {@code null}. * @throws org.eclipse.ditto.json.JsonParseException if {@code jsonObject} is not an appropriate JSON object. */ public static TargetMetrics targetMetricsFromJson(final JsonObject jsonObject) { return ImmutableTargetMetrics.fromJson(jsonObject); }
/** * Creates a new {@code TargetMetrics} object from the specified JSON object. * * @param jsonObject a JSON object which provides the data for the Connection to be created. * @return a new TargetMetrics which is initialised with the extracted data from {@code jsonObject}. * @throws NullPointerException if {@code jsonObject} is {@code null}. * @throws org.eclipse.ditto.json.JsonParseException if {@code jsonObject} is not an appropriate JSON object. */ public static TargetMetrics targetMetricsFromJson(final JsonObject jsonObject) { return ImmutableTargetMetrics.fromJson(jsonObject); }