AcceptedGiftTypes class abstract
This object describes the types of gifts that can be gifted to a user or a chat.
- Annotations
-
- @freezed
Constructors
- AcceptedGiftTypes.new({@JsonKey(name: 'unlimited_gifts') required bool unlimitedGifts, @JsonKey(name: 'limited_gifts') required bool limitedGifts, @JsonKey(name: 'unique_gifts') required bool uniqueGifts, })
-
Creates a new AcceptedGiftTypes object.
constfactory
-
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
-
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