copyWith method

RefusalMessageContent copyWith({
  1. String? refusal,
})

Creates a copy with the given fields replaced.

Implementation

RefusalMessageContent copyWith({String? refusal}) {
  return RefusalMessageContent(refusal: refusal ?? this.refusal);
}