PremiumStatePaymentOption class

Describes an option for buying or upgrading Telegram Premium for self.

Inheritance
Available Extensions

Constructors

PremiumStatePaymentOption({required PremiumPaymentOption payment_option, required bool is_current, required bool is_upgrade, required String last_transaction_id, int? extra, int? clientId})
Describes an option for buying or upgrading Telegram Premium for self

Properties

clientId ↔ int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
extra ↔ int?
Request identifier. Must be non-zero.
read / writeoverride
hashCode → int
The hash code for this object.
read-onlyinherited
is_current ↔ bool
True, if this is the currently used Telegram Premium subscription option.
read / write
is_upgrade ↔ bool
True, if the payment option can be used to upgrade the existing Telegram Premium subscription.
read / write
last_transaction_id ↔ String
Identifier of the last in-store transaction for the currently used option.
read / write
payment_option ↔ PremiumPaymentOption
Information about the payment option.
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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

Operators

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

Static Methods

fromMap(Map<String, dynamic>? _map) → PremiumStatePaymentOption?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"premiumStatePaymentOption"