Token.fromJson constructor
Token.fromJson(
- Map json_
Implementation
Token.fromJson(core.Map json_)
: this(
dependencyEdge: json_.containsKey('dependencyEdge')
? DependencyEdge.fromJson(json_['dependencyEdge']
as core.Map<core.String, core.dynamic>)
: null,
lemma:
json_.containsKey('lemma') ? json_['lemma'] as core.String : null,
partOfSpeech: json_.containsKey('partOfSpeech')
? PartOfSpeech.fromJson(
json_['partOfSpeech'] as core.Map<core.String, core.dynamic>)
: null,
text: json_.containsKey('text')
? TextSpan.fromJson(
json_['text'] as core.Map<core.String, core.dynamic>)
: null,
);