copyWith method
LongTaskStatusWithLinks
copyWith({
- String? ari,
- String? id,
- LongTaskStatusWithLinksName? name,
- int? elapsedTime,
- int? percentageComplete,
- bool? successful,
- bool? finished,
- List<
Message> ? messages, - GenericLinks? links,
- String? status,
- List<
Message> ? errors, - LongTaskStatusWithLinksAdditionalDetails? additionalDetails,
Implementation
LongTaskStatusWithLinks copyWith(
{String? ari,
String? id,
LongTaskStatusWithLinksName? name,
int? elapsedTime,
int? percentageComplete,
bool? successful,
bool? finished,
List<Message>? messages,
GenericLinks? links,
String? status,
List<Message>? errors,
LongTaskStatusWithLinksAdditionalDetails? additionalDetails}) {
return LongTaskStatusWithLinks(
ari: ari ?? this.ari,
id: id ?? this.id,
name: name ?? this.name,
elapsedTime: elapsedTime ?? this.elapsedTime,
percentageComplete: percentageComplete ?? this.percentageComplete,
successful: successful ?? this.successful,
finished: finished ?? this.finished,
messages: messages ?? this.messages,
links: links ?? this.links,
status: status ?? this.status,
errors: errors ?? this.errors,
additionalDetails: additionalDetails ?? this.additionalDetails,
);
}