copyWith method

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

Implementation

ServiceAgreementUpdateV3Body copyWith(
    {bool? hasServiceAgreement,
    DateTime? beginDate,
    enums.ServiceAgreementTermDTO? term,
    int? termMonths,
    int? termDays}) {
  return ServiceAgreementUpdateV3Body(
      hasServiceAgreement: hasServiceAgreement ?? this.hasServiceAgreement,
      beginDate: beginDate ?? this.beginDate,
      term: term ?? this.term,
      termMonths: termMonths ?? this.termMonths,
      termDays: termDays ?? this.termDays);
}