GiveawayCreated class abstract
This object represents a service message about the creation of a scheduled giveaway. Currently holds no information.
- Annotations
-
- @freezed
Constructors
- GiveawayCreated.new({@JsonKey(name: 'prize_star_count') int? prizeStarCount})
-
Creates a
GiveawayCreated
object.constfactory -
GiveawayCreated.fromJson(Map<
String, dynamic> json) -
Creates a
GiveawayCreated
object from a JSON object.factory
Properties
-
copyWith
→ $GiveawayCreatedCopyWith<
GiveawayCreated> -
Create a copy of GiveawayCreated
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- prizeStarCount → int?
-
Optional. The number of Telegram Stars to be split between giveaway
winners; for Telegram Star giveaways only
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this GiveawayCreated to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited