RichTextPhoneNumber.fromJson constructor

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

Parse from a json

Implementation

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