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
PremiumGiftCodeInfo copyWith({
MessageSender? Function()? creatorId,
int? creationDate,
bool? isFromGiveaway,
int? giveawayMessageId,
int? monthCount,
int? userId,
int? useDate,
dynamic extra,
int? clientId,
}) =>
PremiumGiftCodeInfo(
creatorId: creatorId != null ? creatorId() : this.creatorId,
creationDate: creationDate ?? this.creationDate,
isFromGiveaway: isFromGiveaway ?? this.isFromGiveaway,
giveawayMessageId: giveawayMessageId ?? this.giveawayMessageId,
monthCount: monthCount ?? this.monthCount,
userId: userId ?? this.userId,
useDate: useDate ?? this.useDate,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);