copyWith method

CustomFieldResponse copyWith({
  1. int? id,
  2. DateTime? dbDateCreated,
  3. DateTime? dbDateUpdated,
  4. int? crew,
  5. int? question,
  6. CustomFieldResponseDataType? dataType,
  7. String? responseData,
})

Implementation

CustomFieldResponse copyWith(
    {int? id,
    DateTime? dbDateCreated,
    DateTime? dbDateUpdated,
    int? crew,
    int? question,
    enums.CustomFieldResponseDataType? dataType,
    String? responseData}) {
  return CustomFieldResponse(
      id: id ?? this.id,
      dbDateCreated: dbDateCreated ?? this.dbDateCreated,
      dbDateUpdated: dbDateUpdated ?? this.dbDateUpdated,
      crew: crew ?? this.crew,
      question: question ?? this.question,
      dataType: dataType ?? this.dataType,
      responseData: responseData ?? this.responseData);
}