toJson method
Method to convert ErrorEvent
instance into a JSON map.
Implementation
Map<String, dynamic> toJson() {
return {
'type': type,
'testID': testID,
'error': error,
'stackTrace': stackTrace,
'isFailure': isFailure,
};
}