json method

Future<TestResponse> json(
  1. String method,
  2. String path, [
  3. Object? body,
  4. Map<String, String>? headers,
])

Implementation

Future<TestResponse> json(
  String method,
  String path, [
  Object? body,
  Map<String, String>? headers,
]) => _send(
  method,
  path,
  json: body ?? const <String, Object?>{},
  headers: {'accept': 'application/json', ...?headers},
);