AcceptedGiftTypes constructor

const AcceptedGiftTypes({
  1. @JsonKey.new(name: 'unlimited_gifts') bool? unlimitedGifts,
  2. @JsonKey.new(name: 'limited_gifts') bool? limitedGifts,
  3. @JsonKey.new(name: 'unique_gifts') bool? uniqueGifts,
  4. @JsonKey.new(name: 'premium_subscription') bool? premiumSubscription,
  5. @JsonKey.new(name: 'gifts_from_channels') bool? giftsFromChannels,
})

Creates a new AcceptedGiftTypes object.

Implementation

const factory AcceptedGiftTypes({
  /// Optional. True, if unlimited regular gifts are accepted
  @JsonKey(name: 'unlimited_gifts') bool? unlimitedGifts,

  /// Optional. True, if limited regular gifts are accepted
  @JsonKey(name: 'limited_gifts') bool? limitedGifts,

  /// Optional. True, if unique gifts or gifts that can be upgraded to unique for free are accepted
  @JsonKey(name: 'unique_gifts') bool? uniqueGifts,

  /// Optional. True, if a Telegram Premium subscription is accepted
  @JsonKey(name: 'premium_subscription') bool? premiumSubscription,

  /// Optional. True, if transfers of unique gifts from channels are accepted
  @JsonKey(name: 'gifts_from_channels') bool? giftsFromChannels,
}) = _AcceptedGiftTypes;