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
ConnectedAffiliateProgram copyWith({
String? url,
int? botUserId,
AffiliateProgramParameters? parameters,
int? connectionDate,
bool? isDisconnected,
int? userCount,
int? revenueStarCount,
dynamic extra,
int? clientId,
}) => ConnectedAffiliateProgram(
url: url ?? this.url,
botUserId: botUserId ?? this.botUserId,
parameters: parameters ?? this.parameters,
connectionDate: connectionDate ?? this.connectionDate,
isDisconnected: isDisconnected ?? this.isDisconnected,
userCount: userCount ?? this.userCount,
revenueStarCount: revenueStarCount ?? this.revenueStarCount,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);