UniqueGiftColors constructor
const
UniqueGiftColors({
- @JsonKey.new(name: 'model_custom_emoji_id') required String modelCustomEmojiId,
- @JsonKey.new(name: 'symbol_custom_emoji_id') required String symbolCustomEmojiId,
- @JsonKey.new(name: 'light_theme_main_color') required int lightThemeMainColor,
- @JsonKey.new(name: 'light_theme_other_colors') required List<
int> lightThemeOtherColors, - @JsonKey.new(name: 'dark_theme_main_color') required int darkThemeMainColor,
- @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;