ChatBoost class abstract
This object contains information about a chat boost.
- Annotations
-
- @freezed
Constructors
- ChatBoost.new({@JsonKey(name: 'boost_id') required String boostId, @JsonKey(name: 'add_date') required int addDate, @JsonKey(name: 'expiration_date') required int expirationDate, @JsonKey(name: 'source') required ChatBoostSource source})
-
Creates a chat boost.
constfactory
-
ChatBoost.fromJson(Map<
String, dynamic> json) -
Creates a
ChatBoost
object from a JSON object.factory
Properties
- addDate → int
-
Point in time (Unix timestamp) when the chat was boosted
no setterinherited
- boostId → String
-
Unique identifier of the boost
no setterinherited
-
copyWith
→ $ChatBoostCopyWith<
ChatBoost> -
Create a copy of ChatBoost
with the given fields replaced by the non-null parameter values.
no setterinherited
- expirationDate → int
-
Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegram Premium subscription is prolonged
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → ChatBoostSource
-
Source of the added boost
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this ChatBoost to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited