copyWithWrapped method

ServiceAgreementUpdateV3Body copyWithWrapped({
  1. Wrapped<bool?>? hasServiceAgreement,
  2. Wrapped<DateTime?>? beginDate,
  3. Wrapped<ServiceAgreementTermDTO?>? term,
  4. Wrapped<int?>? termMonths,
  5. Wrapped<int?>? termDays,
})

Implementation

ServiceAgreementUpdateV3Body copyWithWrapped(
    {Wrapped<bool?>? hasServiceAgreement,
    Wrapped<DateTime?>? beginDate,
    Wrapped<enums.ServiceAgreementTermDTO?>? term,
    Wrapped<int?>? termMonths,
    Wrapped<int?>? termDays}) {
  return ServiceAgreementUpdateV3Body(
      hasServiceAgreement: (hasServiceAgreement != null
          ? hasServiceAgreement.value
          : this.hasServiceAgreement),
      beginDate: (beginDate != null ? beginDate.value : this.beginDate),
      term: (term != null ? term.value : this.term),
      termMonths: (termMonths != null ? termMonths.value : this.termMonths),
      termDays: (termDays != null ? termDays.value : this.termDays));
}