test_class.declarator: THING_ID = ThingId.of("org.eclipse.ditto.test", "myThing")
test_class.modifier: private static final
test_class.original_string: private static final ThingId THING_ID = ThingId.of("org.eclipse.ditto.test", "myThing");
test_class.type: ThingId
test_class.var_name: THING_ID
test_class.declarator: THING = Thing.newBuilder().setId(THING_ID).build()
test_class.modifier: private static final
test_class.original_string: private static final Thing THING = Thing.newBuilder().setId(THING_ID).build();
test_class.type: Thing
test_class.var_name: THING
test_class.declarator: KNOWN_JSON = JsonFactory.newObjectBuilder()
              .set(SudoCommandResponse.JsonFields.TYPE, SudoRetrieveThingResponse.TYPE)
              .set(SudoCommandResponse.JsonFields.STATUS, HttpStatusCode.OK.toInt())
              .set(SudoRetrieveThingResponse.JSON_THING, THING.toJson())
              .build()
test_class.modifier: private static final
test_class.original_string: private static final JsonObject KNOWN_JSON = JsonFactory.newObjectBuilder()
              .set(SudoCommandResponse.JsonFields.TYPE, SudoRetrieveThingResponse.TYPE)
              .set(SudoCommandResponse.JsonFields.STATUS, HttpStatusCode.OK.toInt())
              .set(SudoRetrieveThingResponse.JSON_THING, THING.toJson())
              .build();
test_class.type: JsonObject
test_class.var_name: KNOWN_JSON
test_class.declarator: EMPTY_DITTO_HEADERS = DittoHeaders.empty()
test_class.modifier: private static final
test_class.original_string: private static final DittoHeaders EMPTY_DITTO_HEADERS = DittoHeaders.empty();
test_class.type: DittoHeaders
test_class.var_name: EMPTY_DITTO_HEADERS
test_class.file: services/models/things/src/test/java/org/eclipse/ditto/services/models/things/commands/sudo/SudoRetrieveThingResponseTest.java
test_class.identifier: SudoRetrieveThingResponseTest
test_case.body: @Test
      public void toJsonReturnsExpected() {
          final JsonObject thingJson = THING.toJson(FieldType.notHidden());
          final SudoRetrieveThingResponse underTest = SudoRetrieveThingResponse.of(thingJson, EMPTY_DITTO_HEADERS);
          final JsonObject actualJson = underTest.toJson(FieldType.notHidden());
  
          assertThat(actualJson).isEqualTo(KNOWN_JSON);
      }
test_case.class_method_signature: SudoRetrieveThingResponseTest.toJsonReturnsExpected()
test_case.full_signature: @Test public void toJsonReturnsExpected()
test_case.identifier: toJsonReturnsExpected
test_case.invocations: toJson notHidden of toJson notHidden isEqualTo assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void toJsonReturnsExpected()
focal_class.declarator: NAME = "sudoRetrieveThingResponse"
focal_class.modifier: public static final
focal_class.original_string: public static final String NAME = "sudoRetrieveThingResponse";
focal_class.type: String
focal_class.var_name: NAME
focal_class.declarator: TYPE = TYPE_PREFIX + NAME
focal_class.modifier: public static final
focal_class.original_string: public static final String TYPE = TYPE_PREFIX + NAME;
focal_class.type: String
focal_class.var_name: TYPE
focal_class.declarator: JSON_THING =
              JsonFactory.newJsonObjectFieldDefinition("payload/thing", FieldType.REGULAR, JsonSchemaVersion.V_1,
                      JsonSchemaVersion.V_2)
focal_class.modifier: static final
focal_class.original_string: static final JsonFieldDefinition<JsonObject> JSON_THING =
              JsonFactory.newJsonObjectFieldDefinition("payload/thing", FieldType.REGULAR, JsonSchemaVersion.V_1,
                      JsonSchemaVersion.V_2);
focal_class.type: JsonFieldDefinition<JsonObject>
focal_class.var_name: JSON_THING
focal_class.declarator: thing
focal_class.modifier: private final
focal_class.original_string: private final JsonObject thing;
focal_class.type: JsonObject
focal_class.var_name: thing
focal_class.file: services/models/things/src/main/java/org/eclipse/ditto/services/models/things/commands/sudo/SudoRetrieveThingResponse.java
focal_class.identifier: SudoRetrieveThingResponse
focal_class.interfaces: implements SudoCommandResponse<SudoRetrieveThingResponse>
focal_class.class_method_signature: SudoRetrieveThingResponse.SudoRetrieveThingResponse(final HttpStatusCode statusCode, final JsonObject thing,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: private  SudoRetrieveThingResponse(final HttpStatusCode statusCode, final JsonObject thing,
              final DittoHeaders dittoHeaders)
focal_class.identifier: SudoRetrieveThingResponse
focal_class.modifiers: private
focal_class.parameters: (final HttpStatusCode statusCode, final JsonObject thing,
              final DittoHeaders dittoHeaders)
focal_class.signature:  SudoRetrieveThingResponse(final HttpStatusCode statusCode, final JsonObject thing,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrieveThingResponse.of(final JsonObject thing, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SudoRetrieveThingResponse of(final JsonObject thing, final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject thing, final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrieveThingResponse
focal_class.signature: SudoRetrieveThingResponse of(final JsonObject thing, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrieveThingResponse.fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SudoRetrieveThingResponse fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final String jsonString, final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrieveThingResponse
focal_class.signature: SudoRetrieveThingResponse fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrieveThingResponse.fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SudoRetrieveThingResponse fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrieveThingResponse
focal_class.signature: SudoRetrieveThingResponse fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrieveThingResponse.getThing()
focal_class.full_signature: public Thing getThing()
focal_class.identifier: getThing
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Thing
focal_class.signature: Thing getThing()
focal_class.class_method_signature: SudoRetrieveThingResponse.getEntity(final JsonSchemaVersion schemaVersion)
focal_class.full_signature: @Override public JsonValue getEntity(final JsonSchemaVersion schemaVersion)
focal_class.identifier: getEntity
focal_class.modifiers: @Override public
focal_class.parameters: (final JsonSchemaVersion schemaVersion)
focal_class.return: JsonValue
focal_class.signature: JsonValue getEntity(final JsonSchemaVersion schemaVersion)
focal_class.class_method_signature: SudoRetrieveThingResponse.setEntity(final JsonValue entity)
focal_class.full_signature: @Override public SudoRetrieveThingResponse setEntity(final JsonValue entity)
focal_class.identifier: setEntity
focal_class.modifiers: @Override public
focal_class.parameters: (final JsonValue entity)
focal_class.return: SudoRetrieveThingResponse
focal_class.signature: SudoRetrieveThingResponse setEntity(final JsonValue entity)
focal_class.class_method_signature: SudoRetrieveThingResponse.setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.full_signature: @Override public SudoRetrieveThingResponse setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.identifier: setDittoHeaders
focal_class.modifiers: @Override public
focal_class.parameters: (final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrieveThingResponse
focal_class.signature: SudoRetrieveThingResponse setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrieveThingResponse.appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.full_signature: @Override protected void appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.identifier: appendPayload
focal_class.modifiers: @Override protected
focal_class.parameters: (final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.return: void
focal_class.signature: void appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.class_method_signature: SudoRetrieveThingResponse.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: SudoRetrieveThingResponse.equals(@Nullable final Object o)
focal_class.full_signature: @SuppressWarnings({"squid:MethodCyclomaticComplexity", "squid:S1067", "pmd:SimplifyConditional"}) @Override public boolean equals(@Nullable final Object o)
focal_class.identifier: equals
focal_class.modifiers: @SuppressWarnings({"squid:MethodCyclomaticComplexity", "squid:S1067", "pmd:SimplifyConditional"}) @Override public
focal_class.parameters: (@Nullable final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(@Nullable final Object o)
focal_class.class_method_signature: SudoRetrieveThingResponse.canEqual(@Nullable final Object other)
focal_class.full_signature: @Override protected boolean canEqual(@Nullable final Object other)
focal_class.identifier: canEqual
focal_class.modifiers: @Override protected
focal_class.parameters: (@Nullable final Object other)
focal_class.return: boolean
focal_class.signature: boolean canEqual(@Nullable final Object other)
focal_class.class_method_signature: SudoRetrieveThingResponse.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.superclass: extends AbstractCommandResponse<SudoRetrieveThingResponse>
focal_method.body: public static SudoRetrieveThingResponse of(final JsonObject thing, final DittoHeaders dittoHeaders) {
          return new SudoRetrieveThingResponse(HttpStatusCode.OK, thing, dittoHeaders);
      }
focal_method.class_method_signature: SudoRetrieveThingResponse.of(final JsonObject thing, final DittoHeaders dittoHeaders)
focal_method.full_signature: public static SudoRetrieveThingResponse of(final JsonObject thing, final DittoHeaders dittoHeaders)
focal_method.identifier: of
focal_method.modifiers: public static
focal_method.parameters: (final JsonObject thing, final DittoHeaders dittoHeaders)
focal_method.return: SudoRetrieveThingResponse
focal_method.signature: SudoRetrieveThingResponse of(final JsonObject thing, final DittoHeaders dittoHeaders)