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
TonConnectRequest copyWith({
int? sessionId,
int? messageId,
String? body,
int? expirationDate,
String? topic,
String? traceId,
}) => TonConnectRequest(
sessionId: sessionId ?? this.sessionId,
messageId: messageId ?? this.messageId,
body: body ?? this.body,
expirationDate: expirationDate ?? this.expirationDate,
topic: topic ?? this.topic,
traceId: traceId ?? this.traceId,
);