MessageText.fromJson constructor

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

Parse from a json

Implementation

factory MessageText.fromJson(Map<String, dynamic> json) => MessageText(
  text: FormattedText.fromJson(json['text']),
  webPage: json['web_page'] == null ? null : WebPage.fromJson(json['web_page']),
);