map<TResult extends Object?> method
TResult
map<TResult extends Object?>({
- required TResult onRampDeposit(),
- required TResult transfer(),
- required TResult nftTransfer(),
- required TResult telegramGiftTransfer(),
- required TResult telegramGiftPurchase(),
- required TResult telegramGiftSale(),
- required TResult telegramGiftListing(),
- required TResult telegramGiftDelisting(),
- required TResult telegramGiftOfferCreation(),
- required TResult telegramGiftOfferAcceptance(),
- required TResult telegramGiftOfferCancellation(),
- required TResult telegramGiftOfferDecline(),
- required TResult telegramGiftOfferExpiration(),
- required TResult keyChange(),
Implementation
TResult map<TResult extends Object?>({
required TResult Function(TonWalletTransactionTypeOnRampDeposit value)
onRampDeposit,
required TResult Function(TonWalletTransactionTypeTransfer value) transfer,
required TResult Function(TonWalletTransactionTypeNftTransfer value)
nftTransfer,
required TResult Function(
TonWalletTransactionTypeTelegramGiftTransfer value)
telegramGiftTransfer,
required TResult Function(
TonWalletTransactionTypeTelegramGiftPurchase value)
telegramGiftPurchase,
required TResult Function(TonWalletTransactionTypeTelegramGiftSale value)
telegramGiftSale,
required TResult Function(TonWalletTransactionTypeTelegramGiftListing value)
telegramGiftListing,
required TResult Function(
TonWalletTransactionTypeTelegramGiftDelisting value)
telegramGiftDelisting,
required TResult Function(
TonWalletTransactionTypeTelegramGiftOfferCreation value)
telegramGiftOfferCreation,
required TResult Function(
TonWalletTransactionTypeTelegramGiftOfferAcceptance value)
telegramGiftOfferAcceptance,
required TResult Function(
TonWalletTransactionTypeTelegramGiftOfferCancellation value)
telegramGiftOfferCancellation,
required TResult Function(
TonWalletTransactionTypeTelegramGiftOfferDecline value)
telegramGiftOfferDecline,
required TResult Function(
TonWalletTransactionTypeTelegramGiftOfferExpiration value)
telegramGiftOfferExpiration,
required TResult Function(TonWalletTransactionTypeKeyChange value)
keyChange,
}) {
switch (getConstructor()) {
case TonWalletTransactionTypeOnRampDeposit.constructor:
return onRampDeposit
.call(this as TonWalletTransactionTypeOnRampDeposit);
case TonWalletTransactionTypeTransfer.constructor:
return transfer.call(this as TonWalletTransactionTypeTransfer);
case TonWalletTransactionTypeNftTransfer.constructor:
return nftTransfer.call(this as TonWalletTransactionTypeNftTransfer);
case TonWalletTransactionTypeTelegramGiftTransfer.constructor:
return telegramGiftTransfer
.call(this as TonWalletTransactionTypeTelegramGiftTransfer);
case TonWalletTransactionTypeTelegramGiftPurchase.constructor:
return telegramGiftPurchase
.call(this as TonWalletTransactionTypeTelegramGiftPurchase);
case TonWalletTransactionTypeTelegramGiftSale.constructor:
return telegramGiftSale
.call(this as TonWalletTransactionTypeTelegramGiftSale);
case TonWalletTransactionTypeTelegramGiftListing.constructor:
return telegramGiftListing
.call(this as TonWalletTransactionTypeTelegramGiftListing);
case TonWalletTransactionTypeTelegramGiftDelisting.constructor:
return telegramGiftDelisting
.call(this as TonWalletTransactionTypeTelegramGiftDelisting);
case TonWalletTransactionTypeTelegramGiftOfferCreation.constructor:
return telegramGiftOfferCreation
.call(this as TonWalletTransactionTypeTelegramGiftOfferCreation);
case TonWalletTransactionTypeTelegramGiftOfferAcceptance.constructor:
return telegramGiftOfferAcceptance
.call(this as TonWalletTransactionTypeTelegramGiftOfferAcceptance);
case TonWalletTransactionTypeTelegramGiftOfferCancellation.constructor:
return telegramGiftOfferCancellation.call(
this as TonWalletTransactionTypeTelegramGiftOfferCancellation);
case TonWalletTransactionTypeTelegramGiftOfferDecline.constructor:
return telegramGiftOfferDecline
.call(this as TonWalletTransactionTypeTelegramGiftOfferDecline);
case TonWalletTransactionTypeTelegramGiftOfferExpiration.constructor:
return telegramGiftOfferExpiration
.call(this as TonWalletTransactionTypeTelegramGiftOfferExpiration);
case TonWalletTransactionTypeKeyChange.constructor:
return keyChange.call(this as TonWalletTransactionTypeKeyChange);
}
throw StateError('not handled type Generator');
}