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,
      );