toJson method
Converts the NetworkLog instance to a JSON Map
Returns a Map containing all the log information in a format that can be easily serialized to JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'timestamp': timestamp.toIso8601String(),
'tag': tag,
'method': method,
'url': url,
'requestHeaders': requestHeaders,
'requestBody': requestBody,
'statusCode': statusCode,
'responseHeaders': responseHeaders,
'responseBody': responseBody,
'isSuccess': isSuccess,
'type': 'network',
};