copyWith method

CodeInterpreterStepCall copyWith({
  1. String? id,
  2. String? input,
  3. List<CodeInterpreterOutput>? outputs,
})

Creates a copy with the given fields replaced.

Implementation

CodeInterpreterStepCall copyWith({
  String? id,
  String? input,
  List<CodeInterpreterOutput>? outputs,
}) {
  return CodeInterpreterStepCall(
    id: id ?? this.id,
    input: input ?? this.input,
    outputs: outputs ?? this.outputs,
  );
}