OwnedGifts constructor

const OwnedGifts({
  1. @JsonKey(name: 'total_count') required int totalCount,
  2. @JsonKey(name: 'gifts') required List<OwnedGift> gifts,
  3. @JsonKey(name: 'next_offset') String? nextOffset,
})

Creates a new OwnedGifts object.

Implementation

const factory OwnedGifts({
  /// The total number of gifts owned by the user or the chat
  @JsonKey(name: 'total_count') required int totalCount,

  /// The list of gifts
  @JsonKey(name: 'gifts') required List<OwnedGift> gifts,

  /// Optional. Offset for pagination
  @JsonKey(name: 'next_offset') String? nextOffset,
}) = _OwnedGifts;