toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
  '@type': CONSTRUCTOR,
  'currency': currency,
  'amount': amount,
  'star_count': starCount,
  'store_product_id': storeProductId,
  'yearly_boost_count': yearlyBoostCount,
  'winner_options': [for (final e in winnerOptions) e.toJson()],
  'is_default': isDefault,
  'is_additional': isAdditional,
};