Serialise to the wire format.
Map<String, Object?> toJson() => <String, Object?>{ 'display': display, 'uri': ?uri, 'line': ?line, 'column': ?column, };