copyWith method

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

Implementation

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