HttpResponse class

Constructors

HttpResponse({int? statusCode, String? statusMessage, Map<String, dynamic>? headers, Object? body, DateTime? time, Map<String, dynamic>? additionalData})
HttpResponse.fromJson(Map<String, dynamic> json)

Properties

additionalData → Map<String, dynamic>?
final
body → Object?
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, dynamic>?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCode → int?
final
statusMessage → String?
final
time → DateTime?
final

Methods

copyWith({int? statusCode, String? statusMessage, Map<String, dynamic>? headers, Object? body, DateTime? time, Map<String, dynamic>? additionalData}) → HttpResponse
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited