copyWith method

RequestTypeFieldDTO copyWith({
  1. List<RequestTypeFieldValueDTO>? defaultValues,
  2. String? description,
  3. String? fieldId,
  4. JsonTypeBean? jiraSchema,
  5. String? name,
  6. List<String>? presetValues,
  7. bool? required,
  8. List<RequestTypeFieldValueDTO>? validValues,
  9. bool? visible,
})

Implementation

RequestTypeFieldDTO copyWith(
    {List<RequestTypeFieldValueDTO>? defaultValues,
    String? description,
    String? fieldId,
    JsonTypeBean? jiraSchema,
    String? name,
    List<String>? presetValues,
    bool? required,
    List<RequestTypeFieldValueDTO>? validValues,
    bool? visible}) {
  return RequestTypeFieldDTO(
    defaultValues: defaultValues ?? this.defaultValues,
    description: description ?? this.description,
    fieldId: fieldId ?? this.fieldId,
    jiraSchema: jiraSchema ?? this.jiraSchema,
    name: name ?? this.name,
    presetValues: presetValues ?? this.presetValues,
    required: required ?? this.required,
    validValues: validValues ?? this.validValues,
    visible: visible ?? this.visible,
  );
}