copyWith method

SendTonConnectSessionConnectResult copyWith({
  1. int? sessionId,
  2. String? challengeAnswer,
  3. bool? isError,
  4. String? body,
  5. String? traceId,
})

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,
);