copyWith method

WebApiModulesSettingsPaymentSettingsPaymentTermsPaymentTerms copyWith({
  1. String? paymentTermsId,
  2. String? paymentTerms,
  3. String? invoiceMessage,
  4. int? dueInDays,
  5. bool? cod,
  6. String? paymentTermsCode,
  7. bool? inactive,
  8. String? dateStamp,
  9. String? auditNote,
  10. String? recordTitle,
  11. List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  12. List<FwStandardDataFwCustomValue>? custom,
  13. List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  14. List<FwStandardDataFwTranslatedValue>? translation,
})

Implementation

WebApiModulesSettingsPaymentSettingsPaymentTermsPaymentTerms copyWith(
    {String? paymentTermsId,
    String? paymentTerms,
    String? invoiceMessage,
    int? dueInDays,
    bool? cod,
    String? paymentTermsCode,
    bool? inactive,
    String? dateStamp,
    String? auditNote,
    String? recordTitle,
    List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
    List<FwStandardDataFwCustomValue>? custom,
    List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
    List<FwStandardDataFwTranslatedValue>? translation}) {
  return WebApiModulesSettingsPaymentSettingsPaymentTermsPaymentTerms(
      paymentTermsId: paymentTermsId ?? this.paymentTermsId,
      paymentTerms: paymentTerms ?? this.paymentTerms,
      invoiceMessage: invoiceMessage ?? this.invoiceMessage,
      dueInDays: dueInDays ?? this.dueInDays,
      cod: cod ?? this.cod,
      paymentTermsCode: paymentTermsCode ?? this.paymentTermsCode,
      inactive: inactive ?? this.inactive,
      dateStamp: dateStamp ?? this.dateStamp,
      auditNote: auditNote ?? this.auditNote,
      recordTitle: recordTitle ?? this.recordTitle,
      fields: fields ?? this.fields,
      custom: custom ?? this.custom,
      defaultFieldAttributes:
          defaultFieldAttributes ?? this.defaultFieldAttributes,
      translation: translation ?? this.translation);
}