toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
      if (canRestart != null) 'canRestart': canRestart,
      'column': column,
      if (endColumn != null) 'endColumn': endColumn,
      if (endLine != null) 'endLine': endLine,
      'id': id,
      if (instructionPointerReference != null)
        'instructionPointerReference': instructionPointerReference,
      'line': line,
      if (moduleId != null) 'moduleId': moduleId,
      'name': name,
      if (presentationHint != null) 'presentationHint': presentationHint,
      if (source != null) 'source': source,
    };