factory Context.fromJson(Map<String, dynamic> json) => Context( text: json['text'] as String, offset: json['offset'] as int, length: json['length'] as int, );