SourcePosition.fromJson constructor

SourcePosition.fromJson(
  1. Map _json
)

Implementation

SourcePosition.fromJson(core.Map _json)
    : this(
        column:
            _json.containsKey('column') ? _json['column'] as core.int : null,
        currentOffset: _json.containsKey('currentOffset')
            ? _json['currentOffset'] as core.int
            : null,
        endOffset: _json.containsKey('endOffset')
            ? _json['endOffset'] as core.int
            : null,
        fileName: _json.containsKey('fileName')
            ? _json['fileName'] as core.String
            : null,
        line: _json.containsKey('line') ? _json['line'] as core.int : null,
      );