ResponseInspector class final

Data class for response inspector will used to save to local storage.

Constructors

ResponseInspector({int? status, Map? headers, Object? body, int? size, DateTime? dateTime, bool? isTimeout})
ResponseInspector.fromJson(String source)
Return ResponseInspector from json string with given source.
factory
ResponseInspector.fromMap(Map<String, dynamic> map)
Return to ResponseInspector from Map<String, dynamic>.
factory

Properties

body Object?
The body response 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 response send http.
final
isTimeout bool?
Flag instance is timeout.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
The number size response http.
final
status int?
Status code response
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 ResponseInspector data class.
toString() String
A string representation of this object.
inherited

Operators

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