Response.json constructor
Implementation
factory Response.json(
Object? data, {
int? status,
String? statusText,
Headers? headers,
}) {
return Response._(
interop.Response(
data != null ? jsify(data) : null,
interop.ResponseInit(
status: status ?? 200,
statusText: statusText ?? '',
headers: headers?.delegate ?? jsUndefined,
),
),
);
}