toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'exceptionId': exceptionId,
'text': text,
'lineNumber': lineNumber,
'columnNumber': columnNumber,
if (scriptId != null) 'scriptId': scriptId!.toJson(),
if (url != null) 'url': url,
if (stackTrace != null) 'stackTrace': stackTrace!.toJson(),
if (exception != null) 'exception': exception!.toJson(),
if (executionContextId != null)
'executionContextId': executionContextId!.toJson(),
if (exceptionMetaData != null) 'exceptionMetaData': exceptionMetaData,
};
}