toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'type': type,
    if (stack != null) 'stack': stack!.toJson(),
    if (url != null) 'url': url,
    if (lineNumber != null) 'lineNumber': lineNumber,
    if (columnNumber != null) 'columnNumber': columnNumber,
    if (requestId != null) 'requestId': requestId!.toJson(),
  };
}