toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'filePath': filePath,
      'line': line,
      'column': column,
      'lineContent': lineContent,
      if (resolvedType != null) 'resolvedType': resolvedType,
      if (enclosingClass != null) 'enclosingClass': enclosingClass,
      if (enclosingMethod != null) 'enclosingMethod': enclosingMethod,
      if (importSource != null) 'importSource': importSource,
    };