SyntaxToken.fromJson constructor
Implementation
factory SyntaxToken.fromJson(Map<String, dynamic> json) {
return SyntaxToken(
beginOffset: json['BeginOffset'] as int?,
endOffset: json['EndOffset'] as int?,
partOfSpeech: json['PartOfSpeech'] != null
? PartOfSpeechTag.fromJson(
json['PartOfSpeech'] as Map<String, dynamic>)
: null,
text: json['Text'] as String?,
tokenId: json['TokenId'] as int?,
);
}