TextEntity.fromJson constructor

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

Parse from a json

Implementation

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