ChatShareThemeBackdrop constructor

const ChatShareThemeBackdrop({
  1. @JsonKey.new(name: 'id') required int id,
  2. @JsonKey.new(name: 'name') required String name,
  3. @JsonKey.new(name: 'colors') required UniqueGiftBackdropColors colors,
})

Implementation

const factory ChatShareThemeBackdrop({
  /// Unique identifier of the backdrop.
  @JsonKey(name: 'id') required int id,

  /// Name of the backdrop.
  @JsonKey(name: 'name') required String name,

  /// Colors of the backdrop.
  @JsonKey(name: 'colors') required UniqueGiftBackdropColors colors,
}) = _ChatShareThemeBackdrop;