copyWith method

ChatMessageModel copyWith({
  1. String? id,
  2. String? object,
  3. String? created,
  4. String? model,
  5. List<ChoiceModel>? choices,
  6. bool? isSentByMe,
})

Implementation

ChatMessageModel copyWith({
  String? id,
  String? object,
  String? created,
  String? model,
  List<ChoiceModel>? choices,
  bool? isSentByMe,
}) =>
    ChatMessageModel(
      id: id ?? this.id,
      model: model ?? this.model,
      choices: choices ?? this.choices,
    );