Map<String, String> toJson() => { 'type': 'IsolateException', 'error': error.toString(), 'stackTrace': stackTrace.toString(), };