toJson method

Map<String, Object?> toJson()

Serializes this response into json.

To revive it again use DynamiteRawResponse.fromJson with the same serializer and FullTypes as this.

Implementation

Map<String, Object?> toJson() => {
      'statusCode': statusCode,
      'body': rawBody,
      'headers': rawHeaders,
    };