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
@override
StarTransactionTypeBotInvoicePurchase copyWith({
int? userId,
ProductInfo? productInfo,
}) => StarTransactionTypeBotInvoicePurchase(
userId: userId ?? this.userId,
productInfo: productInfo ?? this.productInfo,
);