copyWith method

RequestCreateDTO copyWith({
  1. String? channel,
  2. Form? form,
  3. bool? isAdfRequest,
  4. String? raiseOnBehalfOf,
  5. Map<String, dynamic>? requestFieldValues,
  6. List<String>? requestParticipants,
  7. String? requestTypeId,
  8. String? serviceDeskId,
})

Implementation

RequestCreateDTO copyWith(
    {String? channel,
    Form? form,
    bool? isAdfRequest,
    String? raiseOnBehalfOf,
    Map<String, dynamic>? requestFieldValues,
    List<String>? requestParticipants,
    String? requestTypeId,
    String? serviceDeskId}) {
  return RequestCreateDTO(
    channel: channel ?? this.channel,
    form: form ?? this.form,
    isAdfRequest: isAdfRequest ?? this.isAdfRequest,
    raiseOnBehalfOf: raiseOnBehalfOf ?? this.raiseOnBehalfOf,
    requestFieldValues: requestFieldValues ?? this.requestFieldValues,
    requestParticipants: requestParticipants ?? this.requestParticipants,
    requestTypeId: requestTypeId ?? this.requestTypeId,
    serviceDeskId: serviceDeskId ?? this.serviceDeskId,
  );
}