copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
GetChatBoosts copyWith({
int? chatId,
bool? onlyGiftCodes,
String? offset,
int? limit,
}) =>
GetChatBoosts(
chatId: chatId ?? this.chatId,
onlyGiftCodes: onlyGiftCodes ?? this.onlyGiftCodes,
offset: offset ?? this.offset,
limit: limit ?? this.limit,
);