toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (_preContext?.isNotEmpty ?? false) {
json['pre_context'] = _preContext;
}
if (_postContext?.isNotEmpty ?? false) {
json['post_context'] = _postContext;
}
if (_vars?.isNotEmpty ?? false) {
json['vars'] = _vars;
}
if (_framesOmitted?.isNotEmpty ?? false) {
json['frames_omitted'] = _framesOmitted;
}
if (fileName != null) {
json['filename'] = fileName;
}
if (package != null) {
json['package'] = package;
}
if (function != null) {
json['function'] = function;
}
if (module != null) {
json['module'] = module;
}
if (lineNo != null) {
json['lineno'] = lineNo;
}
if (colNo != null) {
json['colno'] = colNo;
}
if (absPath != null) {
json['abs_path'] = absPath;
}
if (contextLine != null) {
json['context_line'] = contextLine;
}
if (inApp != null) {
json['in_app'] = inApp;
}
if (package != null) {
json['package'] = package;
}
if (native != null) {
json['native'] = native;
}
if (platform != null) {
json['platform'] = platform;
}
if (imageAddr != null) {
json['image_addr'] = imageAddr;
}
if (symbolAddr != null) {
json['symbol_addr'] = symbolAddr;
}
if (instructionAddr != null) {
json['instruction_addr'] = instructionAddr;
}
if (rawFunction != null) {
json['raw_function'] = rawFunction;
}
return json;
}