Context.fromJson constructor

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

Implementation

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