CollectibleItemTypePhoneNumber.fromJson constructor

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

Parses a CollectibleItemTypePhoneNumber from TDLib JSON.

Implementation

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