jsonWithHeader static method

Response jsonWithHeader(
  1. dynamic jsonData, {
  2. int statusCode = HttpStatus.ok,
  3. Map<String, String> headers = const {},
})

Implementation

static Response jsonWithHeader(
  dynamic jsonData, {
  int statusCode = HttpStatus.ok,
  Map<String, String> headers = const {},
}) => Response(
  data: jsonData,
  responseType: ResponseType.json,
  httpStatusCode: statusCode,
  headers: headers,
);