ApiLogNotificationModel class

Constructors

ApiLogNotificationModel({required String method, required String url, int? statusCode, required Map<String, dynamic> requestHeaders, required Map<String, dynamic> responseHeaders, String? requestBody, String? responseBody, String? errorMessage, int? duration, required DateTime timestamp, required bool internetAvailable, required String appVersion, required String platform, required String deviceName, required String osVersion, required bool isTimeout, required bool isCancelled})
const

Properties

appVersion → String
Application version string
final
deviceName → String
Device name or model
final
duration → int?
Duration of the API request in milliseconds
final
errorMessage → String?
Error message describing why the API call failed
final
hashCode → int
The hash code for this object.
no setterinherited
internetAvailable → bool
Whether internet was available at the time of the request
final
isCancelled → bool
Whether the request was cancelled by the user
final
isTimeout → bool
Whether the error was due to a timeout
final
method → String
HTTP method used for the request (GET, POST, PUT, DELETE, etc.)
final
osVersion → String
Operating system version
final
platform → String
Platform identifier (iOS, Android, macOS, Windows, Linux, Web)
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
requestBody → String?
Request body sent to the server (null for GET requests or if empty)
final
requestHeaders → Map<String, dynamic>
Request headers sent with the API call Note: Sensitive headers are automatically masked by the notification system
final
responseBody → String?
Response body received from the server (null if request failed)
final
responseHeaders → Map<String, dynamic>
Response headers received from the server
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCode → int?
HTTP status code returned by the server (null if request failed to reach server)
final
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
timestamp → DateTime
Timestamp when the API request was made
final
url → String
Complete URL of the API endpoint
final

Methods

copyWith({String? method, String? url, int? statusCode, Map<String, dynamic>? requestHeaders, Map<String, dynamic>? responseHeaders, String? requestBody, String? responseBody, String? errorMessage, int? duration, DateTime? timestamp, bool? internetAvailable, String? appVersion, String? platform, String? deviceName, String? osVersion, bool? isTimeout, bool? isCancelled}) → ApiLogNotificationModel
Creates a copy of this ApiLogNotificationModel with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this ApiLogNotificationModel to a JSON map.
toString() → String
A string representation of this object.
inherited

Operators

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