HttpResponseModel class
- Annotations
-
- @freezed
Constructors
-
HttpResponseModel.new({int? statusCode, Map<
String, String> ? headers, Map<String, String> ? requestHeaders, String? body, String? formattedBody, @Uint8ListConverter() Uint8List? bodyBytes, @DurationConverter() Duration? time, List<String> ? sseOutput}) -
constfactory
-
HttpResponseModel.fromJson(Map<
String, Object?> json) -
factory
Properties
- body → String?
-
no setterinherited
- bodyBytes → Uint8List?
-
no setterinherited
- contentType → String?
-
no setter
-
copyWith
→ $HttpResponseModelCopyWith<
HttpResponseModel> -
Create a copy of HttpResponseModel
with the given fields replaced by the non-null parameter values.
no setterinherited
- formattedBody → String?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> ? -
no setterinherited
- mediaType → MediaType?
-
no setter
-
requestHeaders
→ Map<
String, String> ? -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sseOutput
→ List<
String> ? -
no setterinherited
- statusCode → int?
-
no setterinherited
- time → Duration?
-
no setterinherited
Methods
-
fromResponse(
{required Response response, Duration? time, bool isStreamingResponse = false}) → HttpResponseModel -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this HttpResponseModel to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited