RichTextPhoneNumber.fromJson constructor

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

Parses a RichTextPhoneNumber from TDLib JSON.

Implementation

factory RichTextPhoneNumber.fromJson(Map<String, dynamic> json) =>
    RichTextPhoneNumber(
      text: _readObject(json['text'], RichText.fromJson),
      phoneNumber: _readString(json['phone_number']),
    );