toJson method

Map<String, dynamic> toJson()

Serialize to JSON for transmission.

Implementation

Map<String, dynamic> toJson() => {
      'file': file,
      'line': line,
      'col': col,
      if (desc != null) 'desc': desc,
      'type': type,
    };