expectJson method
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;
}
fail the test when the JSON body does not match matcher: a value
(eg. a Map) or a matcher (eg. containsPair('id', 1)).
TestResponse expectJson(Object? matcher) {
expect(json, matcher);
return this;
}