ChatBoostSource class abstract

This object describes the source of a chat boost. It can be one of

  • ChatBoostSourcePremium
  • ChatBoostSourceGiftCode
  • ChatBoostSourceGiveaway
Implementers

Constructors

ChatBoostSource(ChatBoostSourceType type)
Creates a source of a chat boost.
const
ChatBoostSource.fromJson(Map<String, dynamic> json)
Creates a ChatBoostSource object from a JSON object.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ChatBoostSourceType
Source of the boost
final

Methods

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

Operators

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