/** * Creates a new {@code SudoRetrieveThings} from a JSON string. * * @param jsonString the JSON string of which a new SudoRetrieveThings is to be created. * @param dittoHeaders the optional command headers of the request. * @return the SudoRetrieveThings which was created from the given JSON string. * @throws NullPointerException if {@code jsonString} is {@code null}. * @throws IllegalArgumentException if {@code jsonString} is empty. * @throws org.eclipse.ditto.json.JsonParseException if the passed in {@code jsonString} does not contain a JSON * object or if it is not valid JSON. * @throws org.eclipse.ditto.json.JsonMissingFieldException if the passed in {@code jsonString} was not in the * expected format. */ public static SudoRetrieveThings fromJson(final String jsonString, final DittoHeaders dittoHeaders) { return fromJson(JsonFactory.newObject(jsonString), dittoHeaders); }
/** * Creates a new {@code SudoRetrieveThings} from a JSON string. * * @param jsonString the JSON string of which a new SudoRetrieveThings is to be created. * @param dittoHeaders the optional command headers of the request. * @return the SudoRetrieveThings which was created from the given JSON string. * @throws NullPointerException if {@code jsonString} is {@code null}. * @throws IllegalArgumentException if {@code jsonString} is empty. * @throws org.eclipse.ditto.json.JsonParseException if the passed in {@code jsonString} does not contain a JSON * object or if it is not valid JSON. * @throws org.eclipse.ditto.json.JsonMissingFieldException if the passed in {@code jsonString} was not in the * expected format. */ public static SudoRetrieveThings fromJson(final String jsonString, final DittoHeaders dittoHeaders) { return fromJson(JsonFactory.newObject(jsonString), dittoHeaders); }