InfospectNetworkResponse class

Represents an Network response data for the Infospect application.

Available extensions

Constructors

InfospectNetworkResponse({int? status, int size = 0, DateTime? responseTime, dynamic body = '', Map<String, String>? headers})
Creates an instance of the InfospectNetworkResponse class.
InfospectNetworkResponse.fromMap(Map map)
Creates an instance of the InfospectNetworkResponse class from a Map representation.
factory

Properties

body → dynamic
The body of the Network response.
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
The headers of the Network response.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
The size of the response data in bytes.
final
status int?
The Network status code of the response.
final
time DateTime
The timestamp when the response was received.
final

Methods

copyWith({int? status, int? size, DateTime? time, dynamic body, Map<String, String>? headers}) InfospectNetworkResponse
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts the InfospectNetworkResponse object into a Map representation.
toString() String
A string representation of this object.
inherited

Operators

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