SToken.fromJson constructor

SToken.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SToken.fromJson(Map<String, dynamic> json) {
  return SToken(
    offset: json['offset'] as int,
    length: json['length'] as int,
    lexeme: json['lexeme'] as String,
    tokenType: json['tokenType'] as String,
  );
}