InfospectNetworkCall class
Represents an Network call data for the Infospect application.
- Available extensions
Constructors
- InfospectNetworkCall(int id, {DateTime? time, String endpoint = '', String client = '', bool loading = true, bool secure = false, String method = '', String server = '', String uri = '', int duration = 0, InfospectNetworkRequest? request, InfospectNetworkResponse? response, InfospectNetworkError? error})
-
Creates an instance of the
InfospectNetworkCall
class. - InfospectNetworkCall.fromJson(String source)
-
factory
- InfospectNetworkCall.fromMap(dynamic map)
-
Creates an instance of the
InfospectNetworkCall
class from a Map representation.factory
Properties
- client → String
-
The client information associated with the Network call.
final
- createdTime → DateTime
-
The timestamp when the Network call was created.
final
- cURL → String
-
Available on InfospectNetworkCall, provided by the NetworkCallExtension extension
Generates a cURL command string based on the Network request data associated with the call.no setter - duration → int
-
The duration of the Network call in milliseconds.
final
- endpoint → String
-
The endpoint (URL path) used in the Network call.
final
- error → InfospectNetworkError?
-
The Network error data associated with the call (if any).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The unique identifier for the Network call.
final
- loading → bool
-
A flag indicating if the call is still in progress (loading) or completed.
final
- method → String
-
The Network method used in the call (e.g., GET, POST, etc.).
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- request → InfospectNetworkRequest?
-
The Network request data associated with the call.
final
- response → InfospectNetworkResponse?
-
The Network response data associated with the call.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secure → bool
-
A flag indicating if the call is made over a secure (NetworkS) connection.
final
- server → String
-
The server URL (domain) to which the call is made.
final
-
Available on InfospectNetworkCall, provided by the NetworkCallExtension extension
no setter - stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - uri → String
-
The full URI (server + endpoint) used in the Network call.
final
Methods
-
copyWith(
{int? id, DateTime? createdTime, String? client, bool? loading, bool? secure, String? method, String? endpoint, String? server, String? uri, int? duration, InfospectNetworkRequest? request, InfospectNetworkResponse? response, InfospectNetworkError? error}) → InfospectNetworkCall -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
Converts the
InfospectNetworkCall
object into a Map representation. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited