newJsonRequest method
Constructs a new JsonRequest that will use this client to send the request. Throws a StateError if this client has been closed.
Implementation
@override
JsonRequest newJsonRequest() {
verifyNotClosed();
// ignore: deprecated_member_use_from_same_package
final request = MockJsonRequest.fromClient(this, _transport);
registerAndDecorateRequest(request);
return request;
}