copyWithWrapped method

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

Implementation

ServiceAgreementUpdateV2Body copyWithWrapped(
    {Wrapped<bool?>? hasServiceAgreement,
    Wrapped<DateTime?>? beginDate,
    Wrapped<enums.ServiceAgreementTermV2?>? term,
    Wrapped<int?>? termMonths,
    Wrapped<int?>? termDays}) {
  return ServiceAgreementUpdateV2Body(
      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));
}