toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'message': message,
'statusCode': statusCode,
'data': data,
'url': url?.toString(),
'method': method,
'kind': kind.name,
'timestamp': timestamp.toIso8601String(),
'retryAfterMs': retryAfter?.inMilliseconds,
};
}