copyWith method

WebApiModulesSettingsAccountingSettingsProfitCenterProfitCenter copyWith({
  1. String? profitCenterId,
  2. String? chargeCode1,
  3. String? chargeCode2,
  4. String? chargeCode3,
  5. String? dateStamp,
  6. String? auditNote,
  7. String? recordTitle,
  8. List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  9. List<FwStandardDataFwCustomValue>? custom,
  10. List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  11. List<FwStandardDataFwTranslatedValue>? translation,
})

Implementation

WebApiModulesSettingsAccountingSettingsProfitCenterProfitCenter copyWith(
    {String? profitCenterId,
    String? chargeCode1,
    String? chargeCode2,
    String? chargeCode3,
    String? dateStamp,
    String? auditNote,
    String? recordTitle,
    List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
    List<FwStandardDataFwCustomValue>? custom,
    List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
    List<FwStandardDataFwTranslatedValue>? translation}) {
  return WebApiModulesSettingsAccountingSettingsProfitCenterProfitCenter(
      profitCenterId: profitCenterId ?? this.profitCenterId,
      chargeCode1: chargeCode1 ?? this.chargeCode1,
      chargeCode2: chargeCode2 ?? this.chargeCode2,
      chargeCode3: chargeCode3 ?? this.chargeCode3,
      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);
}