toMap method
Implementation
Map<String, dynamic> toMap() {
return <String, dynamic>{
'type': type.toMap(),
'url': url,
'headers': headers,
'body': body,
'response': response,
'isError': isError,
'stackTrace': stackTrace,
};
}