StorePaymentPurposePremiumGiftCodes.fromJson constructor
Parses a StorePaymentPurposePremiumGiftCodes from TDLib JSON.
Implementation
factory StorePaymentPurposePremiumGiftCodes.fromJson(
Map<String, dynamic> json,
) => StorePaymentPurposePremiumGiftCodes(
boostedChatId: _readInt(json['boosted_chat_id']),
currency: _readString(json['currency']),
amount: _readInt(json['amount']),
userIds: _readList<int>(json['user_ids'], _readInt),
text: _readObject(json['text'], FormattedText.fromJson),
);