expectJson method

TestResponse expectJson(
  1. Object? matcher
)

fail the test when the JSON body does not match matcher: a value (eg. a Map) or a matcher (eg. containsPair('id', 1)).

Implementation

TestResponse expectJson(Object? matcher) {
  expect(json, matcher);
  return this;
}