GiftBackground constructor

const GiftBackground({
  1. @JsonKey.new(name: 'center_color') required int centerColor,
  2. @JsonKey.new(name: 'edge_color') required int edgeColor,
  3. @JsonKey.new(name: 'text_color') required int textColor,
})

Creates a new GiftBackground object.

Implementation

const factory GiftBackground({
  /// Center color of the background in RGB format
  @JsonKey(name: 'center_color') required int centerColor,

  /// Edge color of the background in RGB format
  @JsonKey(name: 'edge_color') required int edgeColor,

  /// Text color of the background in RGB format
  @JsonKey(name: 'text_color') required int textColor,
}) = _GiftBackground;