GiftForResale.fromJson constructor

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

Parses a GiftForResale from TDLib JSON.

Implementation

factory GiftForResale.fromJson(Map<String, dynamic> json) => GiftForResale(
  gift: _readObject(json['gift'], UpgradedGift.fromJson),
  receivedGiftId: _readString(json['received_gift_id']),
);