ApiLogModel class

Model for API log entries (request/response).

Extends DevLogModel and adds method, url, headers, body, statusCode, timings, and memoryUsage.

Inheritance
Annotations
  • @HiveType(typeId: 2)

Constructors

ApiLogModel.new({required String id, required DateTime timestamp, required String heading, required String content, required String method, required String url, required Map<String, dynamic> headers, dynamic body, int? statusCode, int? timings, int? memoryUsage})

Properties

body → dynamic
final
content String
finalinherited
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>
final
heading String
finalinherited
id String
finalinherited
memoryUsage int?
final
method String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
final
timestamp DateTime
finalinherited
timings int?
final
type String
finalinherited
url String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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