copyWith method

AlgoliaSynonyms copyWith({
  1. String? objectID,
  2. SynonymsType? type,
  3. List<String>? synonyms,
  4. List<String>? corrections,
  5. List<String>? replacements,
  6. String? input,
  7. String? word,
  8. String? placeholder,
  9. bool? forwardToReplicas,
})

Implementation

AlgoliaSynonyms copyWith({
  String? objectID,
  SynonymsType? type,
  List<String>? synonyms,
  List<String>? corrections,
  List<String>? replacements,
  String? input,
  String? word,
  String? placeholder,
  bool? forwardToReplicas,
}) {
  return AlgoliaSynonyms(
    objectID: objectID ?? this.objectID,
    type: type ?? this.type,
    synonyms: synonyms ?? this.synonyms,
    corrections: corrections ?? this.corrections,
    replacements: replacements ?? this.replacements,
    input: input ?? this.input,
    word: word ?? this.word,
    placeholder: placeholder ?? this.placeholder,
    forwardToReplicas: forwardToReplicas ?? this.forwardToReplicas,
  );
}