toJson method
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{
'id': id.toString(),
'regular_gift_id': regularGiftId.toString(),
'publisher_chat_id': publisherChatId,
'title': title,
'name': name,
'number': number,
'total_upgraded_count': totalUpgradedCount,
'max_upgraded_count': maxUpgradedCount,
'is_burned': isBurned,
'is_crafted': isCrafted,
'is_premium': isPremium,
'is_theme_available': isThemeAvailable,
'used_theme_chat_id': usedThemeChatId,
'host_id': hostId?.toJson(),
'owner_id': ownerId?.toJson(),
'owner_address': ownerAddress,
'owner_name': ownerName,
'gift_address': giftAddress,
'model': model?.toJson(),
'symbol': symbol?.toJson(),
'backdrop': backdrop?.toJson(),
'original_details': originalDetails?.toJson(),
'colors': colors?.toJson(),
'resale_parameters': resaleParameters?.toJson(),
'can_send_purchase_offer': canSendPurchaseOffer,
'craft_probability_per_mille': craftProbabilityPerMille,
'value_currency': valueCurrency,
'value_amount': valueAmount,
'value_usd_amount': valueUsdAmount,
'@type': constructor,
};