copyWith method
ApprovalDTO
copyWith({
- SelfLinkDTO? links,
- List<
ApproverDTO> ? approvers, - bool? canAnswerApproval,
- DateDTO? completedDate,
- DateDTO? createdDate,
- ApprovalDTOFinalDecision? finalDecision,
- String? id,
- String? name,
Implementation
ApprovalDTO copyWith(
{SelfLinkDTO? links,
List<ApproverDTO>? approvers,
bool? canAnswerApproval,
DateDTO? completedDate,
DateDTO? createdDate,
ApprovalDTOFinalDecision? finalDecision,
String? id,
String? name}) {
return ApprovalDTO(
links: links ?? this.links,
approvers: approvers ?? this.approvers,
canAnswerApproval: canAnswerApproval ?? this.canAnswerApproval,
completedDate: completedDate ?? this.completedDate,
createdDate: createdDate ?? this.createdDate,
finalDecision: finalDecision ?? this.finalDecision,
id: id ?? this.id,
name: name ?? this.name,
);
}