TransactionPartner.telegramAds constructor
- @Assert.new('type == TransactionPartnerType.telegramAds', 'type must be TransactionPartnerType.telegramAds')
- @JsonKey.new(name: 'type') @Default.new(TransactionPartnerType.telegramAds) TransactionPartnerType type,
Represents a withdrawal transaction to the Telegram Ads platform
Implementation
@Assert(
'type == TransactionPartnerType.telegramAds',
'type must be TransactionPartnerType.telegramAds',
)
const factory TransactionPartner.telegramAds({
/// Type of the transaction partner, must be "telegram_ads"
@JsonKey(name: 'type')
@Default(TransactionPartnerType.telegramAds)
TransactionPartnerType type,
}) = TransactionPartnerTelegramAds;