TransactionPartner.telegramAds constructor
- @Assert('type == TransactionPartnerType.telegramAds', 'type must be TransactionPartnerType.telegramAds')
- @JsonKey(name: 'type') @Default(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;