copyWithWrapped method

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

Implementation

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