UniqueGiftColors constructor

const UniqueGiftColors({
  1. @JsonKey.new(name: 'model_custom_emoji_id') required String modelCustomEmojiId,
  2. @JsonKey.new(name: 'symbol_custom_emoji_id') required String symbolCustomEmojiId,
  3. @JsonKey.new(name: 'light_theme_main_color') required int lightThemeMainColor,
  4. @JsonKey.new(name: 'light_theme_other_colors') required List<int> lightThemeOtherColors,
  5. @JsonKey.new(name: 'dark_theme_main_color') required int darkThemeMainColor,
  6. @JsonKey.new(name: 'dark_theme_other_colors') required List<int> darkThemeOtherColors,
})

Creates a new UniqueGiftColors object.

Implementation

const factory UniqueGiftColors({
  /// Custom emoji identifier of the unique gift's model
  @JsonKey(name: 'model_custom_emoji_id') required String modelCustomEmojiId,

  /// Custom emoji identifier of the unique gift's symbol
  @JsonKey(name: 'symbol_custom_emoji_id')
  required String symbolCustomEmojiId,

  /// Main color used in light themes; RGB format
  @JsonKey(name: 'light_theme_main_color') required int lightThemeMainColor,

  /// List of 1-3 additional colors used in light themes; RGB format
  @JsonKey(name: 'light_theme_other_colors')
  required List<int> lightThemeOtherColors,

  /// Main color used in dark themes; RGB format
  @JsonKey(name: 'dark_theme_main_color') required int darkThemeMainColor,

  /// List of 1-3 additional colors used in dark themes; RGB format
  @JsonKey(name: 'dark_theme_other_colors')
  required List<int> darkThemeOtherColors,
}) = _UniqueGiftColors;