AcceptedGiftTypes class abstract

This object describes the types of gifts that can be gifted to a user or a chat.

Annotations
  • @freezed

Constructors

AcceptedGiftTypes({@JsonKey.new(name: 'unlimited_gifts') required bool unlimitedGifts, @JsonKey.new(name: 'limited_gifts') required bool limitedGifts, @JsonKey.new(name: 'unique_gifts') required bool uniqueGifts, @JsonKey.new(name: 'premium_subscription') required bool premiumSubscription})
Creates a new AcceptedGiftTypes object.
const
factory
AcceptedGiftTypes.fromJson(Map<String, dynamic> json)
Creates a new AcceptedGiftTypes object from a JSON Map.
factory

Properties

copyWith → $AcceptedGiftTypesCopyWith<AcceptedGiftTypes>
Create a copy of AcceptedGiftTypes with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
limitedGifts → bool
True, if limited regular gifts are accepted
no setterinherited
premiumSubscription → bool
True, if a Telegram Premium subscription is accepted
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uniqueGifts → bool
True, if unique gifts or gifts that can be upgraded to unique for free are accepted
no setterinherited
unlimitedGifts → bool
True, if unlimited regular gifts are accepted
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this AcceptedGiftTypes to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited