TextEntities.fromJson constructor

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

Parse from a json

Implementation

factory TextEntities.fromJson(Map<String, dynamic> json) => TextEntities(
  entities: List<TextEntity>.from((json['entities'] ?? []).map((item) => TextEntity.fromJson(item)).toList()),
  extra: json['@extra'],
  clientId: json['@client_id'],
);