UpgradedGiftDepositInfo.fromJson constructor

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

Parses a UpgradedGiftDepositInfo from TDLib JSON.

Implementation

factory UpgradedGiftDepositInfo.fromJson(Map<String, dynamic> json) =>
    UpgradedGiftDepositInfo(
      nftAddress: _readString(json['nft_address']),
      payload: _readString(json['payload']),
      gramAmount: _readInt(json['gram_amount']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );