GiftSettings.fromJson constructor
Parses a GiftSettings from TDLib JSON.
Implementation
factory GiftSettings.fromJson(Map<String, dynamic> json) => GiftSettings(
showGiftButton: _readBool(json['show_gift_button']),
acceptedGiftTypes: _readObject(
json['accepted_gift_types'],
AcceptedGiftTypes.fromJson,
),
);