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