UpgradedGiftDepositInfo class final

Contains information needed to deposit an upgraded gift from the TON wallet of the current user to a Telegram account. The gift must be transferred by an internal message from the wallet to nft_address with gram_amount attached and with payload as the message body

Inheritance

Constructors

UpgradedGiftDepositInfo({required String nftAddress, required String payload, required int gramAmount, dynamic extra, int? clientId})
Contains information needed to deposit an upgraded gift from the TON wallet of the current user to a Telegram account. The gift must be transferred by an internal message from the wallet to nft_address with gram_amount attached and with payload as the message body
const
UpgradedGiftDepositInfo.fromJson(Map<String, dynamic> json)
Parses a UpgradedGiftDepositInfo from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object.
final
extra → dynamic
"@extra" of the request this object answers.
final
gramAmount → int
The amount of TON Grams that must be attached to the message to cover fees, in the smallest units of the cryptocurrency; excess amount will be returned to the wallet
final
hashCode → int
The hash code for this object.
no setterinherited
nftAddress → String
Address in TON blockchain to which the message must be sent
final
payload → String
Body of the NFT transfer message
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? nftAddress, String? payload, int? gramAmount, dynamic extra, int? clientId}) → UpgradedGiftDepositInfo
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.