RequestInspector class final
Data class for request inspector will used to save to local storage.
Constructors
- RequestInspector({required Uri url, required String method, Map? headers, Object? body, int? size, DateTime? dateTime})
- RequestInspector.fromJson(String source)
-
Return RequestInspector from json string with given
source
.factory -
RequestInspector.fromMap(Map<
String, dynamic> map) -
Return to RequestInspector from Map<String, dynamic>.
factory
Properties
- body → Object?
-
The body request send http.
final
- dateTime → DateTime?
-
The date time when instance created.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headers → Map?
-
The headers request send http.
final
- method → String
-
The method request send http.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int?
-
The number size request http.
final
- url → Uri
-
The url http.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Return string json from toMap.
-
toMap(
) → Map< String, dynamic> - Return to Map<String, dynamic> from RequestInspector data class.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited