toMap method
Converts Basic Event to map
Implementation
@override
Map<String, dynamic> toMap() {
return {
...super.toMap(),
ExceptionKeys.type: exceptionType,
ExceptionKeys.stacktrace: exceptionStackTrace,
ExceptionKeys.message: exceptionMessage,
CharacteristicsKeys.hasError: _hasError,
CharacteristicsKeys.hasException: _hasException,
if (responseReasonPhrase != null) Http.responseReasonPhrase: responseReasonPhrase,
};
}