copyWith method

AnswerTonConnectRequest copyWith({
  1. int? sessionId,
  2. int? messageId,
  3. String? traceId,
  4. String? body,
})

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