fromJson static method
Inherited by: TelegramPaymentPurposeGiftedStars TelegramPaymentPurposeJoinChat TelegramPaymentPurposePremiumGift TelegramPaymentPurposePremiumGiftCodes TelegramPaymentPurposePremiumGiveaway TelegramPaymentPurposeStarGiveaway TelegramPaymentPurposeStars
Implementation
static TelegramPaymentPurposeJoinChat? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return TelegramPaymentPurposeJoinChat(
inviteLink: (json['invite_link'] as String?) ?? '',
);
}