maybeMap<TResult extends Object?> method
TResult
maybeMap<TResult extends Object?>({
- TResult affiliateProgramCommission()?,
- TResult appStoreDeposit()?,
- TResult botInvoicePurchase()?,
- TResult botInvoiceSale()?,
- TResult botPaidMediaPurchase()?,
- TResult botPaidMediaSale()?,
- TResult botSubscriptionPurchase()?,
- TResult botSubscriptionSale()?,
- TResult businessBotTransferReceive()?,
- TResult businessBotTransferSend()?,
- TResult channelPaidMediaPurchase()?,
- TResult channelPaidMediaSale()?,
- TResult channelPaidReactionReceive()?,
- TResult channelPaidReactionSend()?,
- TResult channelSubscriptionPurchase()?,
- TResult channelSubscriptionSale()?,
- TResult fragmentDeposit()?,
- TResult fragmentWithdrawal()?,
- TResult giftAuctionBid()?,
- TResult giftOriginalDetailsDrop()?,
- TResult giftPurchase()?,
- TResult giftPurchaseOffer()?,
- TResult giftSale()?,
- TResult giftTransfer()?,
- TResult giftUpgrade()?,
- TResult giftUpgradePurchase()?,
- TResult giveawayDeposit()?,
- TResult googlePlayDeposit()?,
- TResult paidGroupCallMessageReceive()?,
- TResult paidGroupCallMessageSend()?,
- TResult paidGroupCallReactionReceive()?,
- TResult paidGroupCallReactionSend()?,
- TResult paidMessageReceive()?,
- TResult paidMessageSend()?,
- TResult publicPostSearch()?,
- TResult suggestedPostPaymentReceive()?,
- TResult suggestedPostPaymentSend()?,
- TResult telegramAdsWithdrawal()?,
- TResult telegramApiUsage()?,
- TResult unsupported()?,
- TResult upgradedGiftPurchase()?,
- TResult upgradedGiftSale()?,
- TResult userDeposit()?,
- required TResult orElse(),
Implementation
TResult maybeMap<TResult extends Object?>({
TResult Function(StarTransactionTypeAffiliateProgramCommission value)?
affiliateProgramCommission,
TResult Function(StarTransactionTypeAppStoreDeposit value)? appStoreDeposit,
TResult Function(StarTransactionTypeBotInvoicePurchase value)?
botInvoicePurchase,
TResult Function(StarTransactionTypeBotInvoiceSale value)? botInvoiceSale,
TResult Function(StarTransactionTypeBotPaidMediaPurchase value)?
botPaidMediaPurchase,
TResult Function(StarTransactionTypeBotPaidMediaSale value)?
botPaidMediaSale,
TResult Function(StarTransactionTypeBotSubscriptionPurchase value)?
botSubscriptionPurchase,
TResult Function(StarTransactionTypeBotSubscriptionSale value)?
botSubscriptionSale,
TResult Function(StarTransactionTypeBusinessBotTransferReceive value)?
businessBotTransferReceive,
TResult Function(StarTransactionTypeBusinessBotTransferSend value)?
businessBotTransferSend,
TResult Function(StarTransactionTypeChannelPaidMediaPurchase value)?
channelPaidMediaPurchase,
TResult Function(StarTransactionTypeChannelPaidMediaSale value)?
channelPaidMediaSale,
TResult Function(StarTransactionTypeChannelPaidReactionReceive value)?
channelPaidReactionReceive,
TResult Function(StarTransactionTypeChannelPaidReactionSend value)?
channelPaidReactionSend,
TResult Function(StarTransactionTypeChannelSubscriptionPurchase value)?
channelSubscriptionPurchase,
TResult Function(StarTransactionTypeChannelSubscriptionSale value)?
channelSubscriptionSale,
TResult Function(StarTransactionTypeFragmentDeposit value)? fragmentDeposit,
TResult Function(StarTransactionTypeFragmentWithdrawal value)?
fragmentWithdrawal,
TResult Function(StarTransactionTypeGiftAuctionBid value)? giftAuctionBid,
TResult Function(StarTransactionTypeGiftOriginalDetailsDrop value)?
giftOriginalDetailsDrop,
TResult Function(StarTransactionTypeGiftPurchase value)? giftPurchase,
TResult Function(StarTransactionTypeGiftPurchaseOffer value)?
giftPurchaseOffer,
TResult Function(StarTransactionTypeGiftSale value)? giftSale,
TResult Function(StarTransactionTypeGiftTransfer value)? giftTransfer,
TResult Function(StarTransactionTypeGiftUpgrade value)? giftUpgrade,
TResult Function(StarTransactionTypeGiftUpgradePurchase value)?
giftUpgradePurchase,
TResult Function(StarTransactionTypeGiveawayDeposit value)? giveawayDeposit,
TResult Function(StarTransactionTypeGooglePlayDeposit value)?
googlePlayDeposit,
TResult Function(StarTransactionTypePaidGroupCallMessageReceive value)?
paidGroupCallMessageReceive,
TResult Function(StarTransactionTypePaidGroupCallMessageSend value)?
paidGroupCallMessageSend,
TResult Function(StarTransactionTypePaidGroupCallReactionReceive value)?
paidGroupCallReactionReceive,
TResult Function(StarTransactionTypePaidGroupCallReactionSend value)?
paidGroupCallReactionSend,
TResult Function(StarTransactionTypePaidMessageReceive value)?
paidMessageReceive,
TResult Function(StarTransactionTypePaidMessageSend value)? paidMessageSend,
TResult Function(StarTransactionTypePremiumBotDeposit value)?
premiumBotDeposit,
TResult Function(StarTransactionTypePremiumPurchase value)? premiumPurchase,
TResult Function(StarTransactionTypePublicPostSearch value)?
publicPostSearch,
TResult Function(StarTransactionTypeSuggestedPostPaymentReceive value)?
suggestedPostPaymentReceive,
TResult Function(StarTransactionTypeSuggestedPostPaymentSend value)?
suggestedPostPaymentSend,
TResult Function(StarTransactionTypeTelegramAdsWithdrawal value)?
telegramAdsWithdrawal,
TResult Function(StarTransactionTypeTelegramApiUsage value)?
telegramApiUsage,
TResult Function(StarTransactionTypeUnsupported value)? unsupported,
TResult Function(StarTransactionTypeUpgradedGiftPurchase value)?
upgradedGiftPurchase,
TResult Function(StarTransactionTypeUpgradedGiftSale value)?
upgradedGiftSale,
TResult Function(StarTransactionTypeUserDeposit value)? userDeposit,
required TResult Function() orElse,
}) {
switch (getConstructor()) {
case StarTransactionTypeAffiliateProgramCommission.constructor:
if (affiliateProgramCommission != null) {
return affiliateProgramCommission.call(
this as StarTransactionTypeAffiliateProgramCommission,
);
}
break;
case StarTransactionTypeAppStoreDeposit.constructor:
if (appStoreDeposit != null) {
return appStoreDeposit.call(
this as StarTransactionTypeAppStoreDeposit,
);
}
break;
case StarTransactionTypeBotInvoicePurchase.constructor:
if (botInvoicePurchase != null) {
return botInvoicePurchase.call(
this as StarTransactionTypeBotInvoicePurchase,
);
}
break;
case StarTransactionTypeBotInvoiceSale.constructor:
if (botInvoiceSale != null) {
return botInvoiceSale.call(this as StarTransactionTypeBotInvoiceSale);
}
break;
case StarTransactionTypeBotPaidMediaPurchase.constructor:
if (botPaidMediaPurchase != null) {
return botPaidMediaPurchase.call(
this as StarTransactionTypeBotPaidMediaPurchase,
);
}
break;
case StarTransactionTypeBotPaidMediaSale.constructor:
if (botPaidMediaSale != null) {
return botPaidMediaSale.call(
this as StarTransactionTypeBotPaidMediaSale,
);
}
break;
case StarTransactionTypeBotSubscriptionPurchase.constructor:
if (botSubscriptionPurchase != null) {
return botSubscriptionPurchase.call(
this as StarTransactionTypeBotSubscriptionPurchase,
);
}
break;
case StarTransactionTypeBotSubscriptionSale.constructor:
if (botSubscriptionSale != null) {
return botSubscriptionSale.call(
this as StarTransactionTypeBotSubscriptionSale,
);
}
break;
case StarTransactionTypeBusinessBotTransferReceive.constructor:
if (businessBotTransferReceive != null) {
return businessBotTransferReceive.call(
this as StarTransactionTypeBusinessBotTransferReceive,
);
}
break;
case StarTransactionTypeBusinessBotTransferSend.constructor:
if (businessBotTransferSend != null) {
return businessBotTransferSend.call(
this as StarTransactionTypeBusinessBotTransferSend,
);
}
break;
case StarTransactionTypeChannelPaidMediaPurchase.constructor:
if (channelPaidMediaPurchase != null) {
return channelPaidMediaPurchase.call(
this as StarTransactionTypeChannelPaidMediaPurchase,
);
}
break;
case StarTransactionTypeChannelPaidMediaSale.constructor:
if (channelPaidMediaSale != null) {
return channelPaidMediaSale.call(
this as StarTransactionTypeChannelPaidMediaSale,
);
}
break;
case StarTransactionTypeChannelPaidReactionReceive.constructor:
if (channelPaidReactionReceive != null) {
return channelPaidReactionReceive.call(
this as StarTransactionTypeChannelPaidReactionReceive,
);
}
break;
case StarTransactionTypeChannelPaidReactionSend.constructor:
if (channelPaidReactionSend != null) {
return channelPaidReactionSend.call(
this as StarTransactionTypeChannelPaidReactionSend,
);
}
break;
case StarTransactionTypeChannelSubscriptionPurchase.constructor:
if (channelSubscriptionPurchase != null) {
return channelSubscriptionPurchase.call(
this as StarTransactionTypeChannelSubscriptionPurchase,
);
}
break;
case StarTransactionTypeChannelSubscriptionSale.constructor:
if (channelSubscriptionSale != null) {
return channelSubscriptionSale.call(
this as StarTransactionTypeChannelSubscriptionSale,
);
}
break;
case StarTransactionTypeFragmentDeposit.constructor:
if (fragmentDeposit != null) {
return fragmentDeposit.call(
this as StarTransactionTypeFragmentDeposit,
);
}
break;
case StarTransactionTypeFragmentWithdrawal.constructor:
if (fragmentWithdrawal != null) {
return fragmentWithdrawal.call(
this as StarTransactionTypeFragmentWithdrawal,
);
}
break;
case StarTransactionTypeGiftAuctionBid.constructor:
if (giftAuctionBid != null) {
return giftAuctionBid.call(this as StarTransactionTypeGiftAuctionBid);
}
break;
case StarTransactionTypeGiftOriginalDetailsDrop.constructor:
if (giftOriginalDetailsDrop != null) {
return giftOriginalDetailsDrop.call(
this as StarTransactionTypeGiftOriginalDetailsDrop,
);
}
break;
case StarTransactionTypeGiftPurchase.constructor:
if (giftPurchase != null) {
return giftPurchase.call(this as StarTransactionTypeGiftPurchase);
}
break;
case StarTransactionTypeGiftPurchaseOffer.constructor:
if (giftPurchaseOffer != null) {
return giftPurchaseOffer.call(
this as StarTransactionTypeGiftPurchaseOffer,
);
}
break;
case StarTransactionTypeGiftSale.constructor:
if (giftSale != null) {
return giftSale.call(this as StarTransactionTypeGiftSale);
}
break;
case StarTransactionTypeGiftTransfer.constructor:
if (giftTransfer != null) {
return giftTransfer.call(this as StarTransactionTypeGiftTransfer);
}
break;
case StarTransactionTypeGiftUpgrade.constructor:
if (giftUpgrade != null) {
return giftUpgrade.call(this as StarTransactionTypeGiftUpgrade);
}
break;
case StarTransactionTypeGiftUpgradePurchase.constructor:
if (giftUpgradePurchase != null) {
return giftUpgradePurchase.call(
this as StarTransactionTypeGiftUpgradePurchase,
);
}
break;
case StarTransactionTypeGiveawayDeposit.constructor:
if (giveawayDeposit != null) {
return giveawayDeposit.call(
this as StarTransactionTypeGiveawayDeposit,
);
}
break;
case StarTransactionTypeGooglePlayDeposit.constructor:
if (googlePlayDeposit != null) {
return googlePlayDeposit.call(
this as StarTransactionTypeGooglePlayDeposit,
);
}
break;
case StarTransactionTypePaidGroupCallMessageReceive.constructor:
if (paidGroupCallMessageReceive != null) {
return paidGroupCallMessageReceive.call(
this as StarTransactionTypePaidGroupCallMessageReceive,
);
}
break;
case StarTransactionTypePaidGroupCallMessageSend.constructor:
if (paidGroupCallMessageSend != null) {
return paidGroupCallMessageSend.call(
this as StarTransactionTypePaidGroupCallMessageSend,
);
}
break;
case StarTransactionTypePaidGroupCallReactionReceive.constructor:
if (paidGroupCallReactionReceive != null) {
return paidGroupCallReactionReceive.call(
this as StarTransactionTypePaidGroupCallReactionReceive,
);
}
break;
case StarTransactionTypePaidGroupCallReactionSend.constructor:
if (paidGroupCallReactionSend != null) {
return paidGroupCallReactionSend.call(
this as StarTransactionTypePaidGroupCallReactionSend,
);
}
break;
case StarTransactionTypePaidMessageReceive.constructor:
if (paidMessageReceive != null) {
return paidMessageReceive.call(
this as StarTransactionTypePaidMessageReceive,
);
}
break;
case StarTransactionTypePaidMessageSend.constructor:
if (paidMessageSend != null) {
return paidMessageSend.call(
this as StarTransactionTypePaidMessageSend,
);
}
break;
case StarTransactionTypePremiumBotDeposit.constructor:
if (premiumBotDeposit != null) {
return premiumBotDeposit.call(
this as StarTransactionTypePremiumBotDeposit,
);
}
break;
case StarTransactionTypePremiumPurchase.constructor:
if (premiumPurchase != null) {
return premiumPurchase.call(
this as StarTransactionTypePremiumPurchase,
);
}
break;
case StarTransactionTypePublicPostSearch.constructor:
if (publicPostSearch != null) {
return publicPostSearch.call(
this as StarTransactionTypePublicPostSearch,
);
}
break;
case StarTransactionTypeSuggestedPostPaymentReceive.constructor:
if (suggestedPostPaymentReceive != null) {
return suggestedPostPaymentReceive.call(
this as StarTransactionTypeSuggestedPostPaymentReceive,
);
}
break;
case StarTransactionTypeSuggestedPostPaymentSend.constructor:
if (suggestedPostPaymentSend != null) {
return suggestedPostPaymentSend.call(
this as StarTransactionTypeSuggestedPostPaymentSend,
);
}
break;
case StarTransactionTypeTelegramAdsWithdrawal.constructor:
if (telegramAdsWithdrawal != null) {
return telegramAdsWithdrawal.call(
this as StarTransactionTypeTelegramAdsWithdrawal,
);
}
break;
case StarTransactionTypeTelegramApiUsage.constructor:
if (telegramApiUsage != null) {
return telegramApiUsage.call(
this as StarTransactionTypeTelegramApiUsage,
);
}
break;
case StarTransactionTypeUnsupported.constructor:
if (unsupported != null) {
return unsupported.call(this as StarTransactionTypeUnsupported);
}
break;
case StarTransactionTypeUpgradedGiftPurchase.constructor:
if (upgradedGiftPurchase != null) {
return upgradedGiftPurchase.call(
this as StarTransactionTypeUpgradedGiftPurchase,
);
}
break;
case StarTransactionTypeUpgradedGiftSale.constructor:
if (upgradedGiftSale != null) {
return upgradedGiftSale.call(
this as StarTransactionTypeUpgradedGiftSale,
);
}
break;
case StarTransactionTypeUserDeposit.constructor:
if (userDeposit != null) {
return userDeposit.call(this as StarTransactionTypeUserDeposit);
}
break;
}
return orElse.call();
}