You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -464,7 +464,7 @@ to qualify a step whose Response JSON payload needs to be unmarshalled/deseriali
464
464
that you cannot depend on HTTP Status Code to distinguish between Success or Error.
465
465
* In such a case,
466
466
you can leverage a bundled Moshi factory link:{sourcedir}/com/salesforce/revoman/input/json/factories/DiMorphicAdapter.kt[DiMorphicAdapter]
467
-
that deals with it dynamically based on a `boolean` attribute value in the response JSON.
467
+
that deals with it dynamically based on a `Predicate`.
468
468
See `DiMorphicAdapter` in action from the test `compositeGraphResponseDiMorphicMarshallUnmarshall()` in link:{testdir}/com/salesforce/revoman/input/json/JsonPojoUtilsTest.java[JsonPojoUtilsTest].
469
469
* You may also refer to link:https://square.github.io/moshi/1.x/moshi-adapters/adapters/com.squareup.moshi.adapters/-polymorphic-json-adapter-factory/index.html[PolymorphicJsonAdapterFactory] for Marshalling/Unmarshalling based on `String` type attribute.
0 commit comments