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
SendTonConnectSessionConnectResult copyWith({
int? sessionId,
String? challengeAnswer,
bool? isError,
String? body,
String? traceId,
}) => SendTonConnectSessionConnectResult(
sessionId: sessionId ?? this.sessionId,
challengeAnswer: challengeAnswer ?? this.challengeAnswer,
isError: isError ?? this.isError,
body: body ?? this.body,
traceId: traceId ?? this.traceId,
);