PrefixNode.fromJson constructor

PrefixNode.fromJson(
  1. Map json_
)

Implementation

PrefixNode.fromJson(core.Map json_)
    : this(
        dataSourceNode: json_.containsKey('dataSourceNode')
            ? json_['dataSourceNode'] as core.bool
            : null,
        depth: json_.containsKey('depth') ? json_['depth'] as core.int : null,
        endIndex: json_.containsKey('endIndex')
            ? json_['endIndex'] as core.int
            : null,
        startIndex: json_.containsKey('startIndex')
            ? json_['startIndex'] as core.int
            : null,
        word: json_.containsKey('word') ? json_['word'] as core.String : null,
      );