InterchangeResponse.fromJsonBody constructor
InterchangeResponse.fromJsonBody({})
Construct from JSON response body
Implementation
InterchangeResponse.fromJsonBody({
int statusCode = defaultStatusCode,
Map<String, List<String>>? headersAll,
required dynamic json,
}) : this.fromStringBody(
statusCode: statusCode,
headersAll: (headersAll ?? {})
..addAll({
'Content-Type': ['application/json']
}),
string: jsonEncode(json),
);