SudoCountThings extends AbstractCommand<SudoCountThings> implements ThingSearchSudoCommand<SudoCountThings> { public static SudoCountThings fromJson(final String jsonString, final DittoHeaders dittoHeaders) { return fromJson(JsonFactory.newObject(jsonString), dittoHeaders); } private  SudoCountThings(final DittoHeaders dittoHeaders, @Nullable final String filter); static SudoCountThings of(@Nullable final String filter, final DittoHeaders dittoHeaders); static SudoCountThings of(final DittoHeaders dittoHeaders); static SudoCountThings fromJson(final String jsonString, final DittoHeaders dittoHeaders); static SudoCountThings fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders); Optional<String> getFilter(); @Override Category getCategory(); @Override SudoCountThings setDittoHeaders(final DittoHeaders dittoHeaders); @Override boolean equals(@Nullable final Object o); @Override int hashCode(); @Override String toString(); static final String NAME; static final String TYPE; }
@Test public void fromJsonWithAllFieldsSetV1() { assertAllFieldsSet(SudoCountThings.fromJson(JSON_ALL_FIELDS_V1, DittoHeaders.empty())); }
@Test public void fromJsonWithAllFieldsSetV2() { assertAllFieldsSet(SudoCountThings.fromJson(JSON_ALL_FIELDS_V2, DittoHeaders.empty())); }
@Test public void fromJsonWithOnlyRequiredFieldsSetV1() { assertMinimal(SudoCountThings.fromJson(JSON_MINIMAL_V1, DittoHeaders.empty())); }
@Test public void fromJsonWithOnlyRequiredFieldsSetV2() { assertMinimal(SudoCountThings.fromJson(JSON_MINIMAL_V2, DittoHeaders.empty())); }