UniqueGiftSymbol constructor

const UniqueGiftSymbol({
  1. @JsonKey(name: 'name') required String name,
  2. @JsonKey(name: 'sticker') required Sticker sticker,
  3. @JsonKey(name: 'rarity_per_mille') required int rarityPerMille,
})

Creates a new UniqueGiftSymbol object.

Implementation

const factory UniqueGiftSymbol({
  /// Name of the symbol
  @JsonKey(name: 'name') required String name,

  /// The sticker that represents the unique gift
  @JsonKey(name: 'sticker') required Sticker sticker,

  /// The number of unique gifts that receive this model for every 1000 gifts upgraded
  @JsonKey(name: 'rarity_per_mille') required int rarityPerMille,
}) = _UniqueGiftSymbol;