copyWith method

RequestTypeDTO copyWith({
  1. List<String>? expands,
  2. SelfLinkDTO? links,
  3. String? description,
  4. CustomerRequestCreateMetaDTO? fields,
  5. List<String>? groupIds,
  6. String? helpText,
  7. RequestTypeIconDTO? icon,
  8. String? id,
  9. String? issueTypeId,
  10. String? name,
  11. String? portalId,
  12. String? practice,
  13. String? serviceDeskId,
})

Implementation

RequestTypeDTO copyWith(
    {List<String>? expands,
    SelfLinkDTO? links,
    String? description,
    CustomerRequestCreateMetaDTO? fields,
    List<String>? groupIds,
    String? helpText,
    RequestTypeIconDTO? icon,
    String? id,
    String? issueTypeId,
    String? name,
    String? portalId,
    String? practice,
    String? serviceDeskId}) {
  return RequestTypeDTO(
    expands: expands ?? this.expands,
    links: links ?? this.links,
    description: description ?? this.description,
    fields: fields ?? this.fields,
    groupIds: groupIds ?? this.groupIds,
    helpText: helpText ?? this.helpText,
    icon: icon ?? this.icon,
    id: id ?? this.id,
    issueTypeId: issueTypeId ?? this.issueTypeId,
    name: name ?? this.name,
    portalId: portalId ?? this.portalId,
    practice: practice ?? this.practice,
    serviceDeskId: serviceDeskId ?? this.serviceDeskId,
  );
}