assertJson method
Asserts that the response JSON contains the exact data.
Implementation
TestResponse assertJson(Map<String, dynamic> data) {
final decoded = jsonDecode(raw.body);
expect(decoded, data);
return this;
}
Asserts that the response JSON contains the exact data.
TestResponse assertJson(Map<String, dynamic> data) {
final decoded = jsonDecode(raw.body);
expect(decoded, data);
return this;
}