TextEntity.fromJson constructor
Parse from a json
Implementation
factory TextEntity.fromJson(Map<String, dynamic> json) => TextEntity(
offset: json['offset'],
length: json['length'],
type: TextEntityType.fromJson(json['type']),
);