toJson method
Serializes this response into json.
To revive it again use DynamiteRawResponse.fromJson
with the same
serializer and FullType
s as this.
Implementation
Map<String, Object?> toJson() => {
'statusCode': statusCode,
'body': rawBody,
'headers': rawHeaders,
};