copyWith method

DmChatToolCallBlock copyWith({
  1. String? id,
  2. String? name,
  3. Object? input,
  4. Object? output,
  5. DmChatToolCallStatus? status,
  6. String? errorMessage,
})

Implementation

DmChatToolCallBlock copyWith({
  String? id,
  String? name,
  Object? input,
  Object? output,
  DmChatToolCallStatus? status,
  String? errorMessage,
}) =>
    DmChatToolCallBlock(
      id: id ?? this.id,
      name: name ?? this.name,
      input: input ?? this.input,
      output: output ?? this.output,
      status: status ?? this.status,
      errorMessage: errorMessage ?? this.errorMessage,
    );