UpgradedGiftModelCount.fromJson constructor

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

Parses a UpgradedGiftModelCount from TDLib JSON.

Implementation

factory UpgradedGiftModelCount.fromJson(Map<String, dynamic> json) =>
    UpgradedGiftModelCount(
      model: _readObject(json['model'], UpgradedGiftModel.fromJson),
      totalCount: _readInt(json['total_count']),
    );