toMap method
Implementation
Map<String, dynamic> toMap() => {
'requestOptions': requestOptionsToMap(requestOptions).addAllT({
'requestTime': requestTime?.format(DateTimeDist.yearMillisecond),
}),
'response': responseToMap(response).addAllT({
'requestOptions': requestOptionsToMap(response?.requestOptions),
'responseTime': responseTime?.format(DateTimeDist.yearMillisecond),
}),
'error': {
'error': error?.error,
'type': error?.type,
'message': error?.message,
'requestOptions': requestOptionsToMap(error?.requestOptions),
'response': responseToMap(error?.response),
'stackTrace': error?.stackTrace.toString(),
'errorTime': responseTime?.format(DateTimeDist.yearMillisecond),
}
};