clone method

Creates a deep copy of this update.

Implementation

ChatResponseUpdate clone() => ChatResponseUpdate(
      role: role,
      authorName: authorName,
      contents: List<AIContent>.of(contents),
      rawRepresentation: rawRepresentation,
      additionalProperties:
          additionalProperties != null ? Map.of(additionalProperties!) : null,
      responseId: responseId,
      messageId: messageId,
      conversationId: conversationId,
      createdAt: createdAt,
      finishReason: finishReason,
      modelId: modelId,
      continuationToken: continuationToken,
      usage: usage,
    );