toJson method
Returns the JSON representation of the response. This is called by the JSON encoder to produce the response.
Implementation
Map<String, dynamic> toJson() => {
'body': body,
'isBase64Encoded': isBase64Encoded,
'statusCode': statusCode,
'statusDescription': statusDescription,
'headers': headers
};