copyWith method

LongTaskStatusWithLinks copyWith({
  1. String? ari,
  2. String? id,
  3. LongTaskStatusWithLinksName? name,
  4. int? elapsedTime,
  5. int? percentageComplete,
  6. bool? successful,
  7. bool? finished,
  8. List<Message>? messages,
  9. GenericLinks? links,
  10. String? status,
  11. List<Message>? errors,
  12. 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,
  );
}