copyWithWrapped method

ConversationHistoryTranscriptToolResultCommonModel copyWithWrapped({
  1. Wrapped? type,
  2. Wrapped<String>? requestId,
  3. Wrapped<String>? toolName,
  4. Wrapped<String>? resultValue,
  5. Wrapped<bool>? isError,
  6. Wrapped<bool>? toolHasBeenCalled,
  7. Wrapped<double?>? toolLatencySecs,
})

Implementation

ConversationHistoryTranscriptToolResultCommonModel copyWithWrapped(
    {Wrapped<dynamic>? type,
    Wrapped<String>? requestId,
    Wrapped<String>? toolName,
    Wrapped<String>? resultValue,
    Wrapped<bool>? isError,
    Wrapped<bool>? toolHasBeenCalled,
    Wrapped<double?>? toolLatencySecs}) {
  return ConversationHistoryTranscriptToolResultCommonModel(
      type: (type != null ? type.value : this.type),
      requestId: (requestId != null ? requestId.value : this.requestId),
      toolName: (toolName != null ? toolName.value : this.toolName),
      resultValue:
          (resultValue != null ? resultValue.value : this.resultValue),
      isError: (isError != null ? isError.value : this.isError),
      toolHasBeenCalled: (toolHasBeenCalled != null
          ? toolHasBeenCalled.value
          : this.toolHasBeenCalled),
      toolLatencySecs: (toolLatencySecs != null
          ? toolLatencySecs.value
          : this.toolLatencySecs));
}