toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  return {
    "statusCode": statusCode,
    "statusText": statusText,
    "responseHeaders": jsonEncode(responseHeaders)
  };
}