copyWith method

WebApiModulesAgentCustomerCreditCustomerCredit copyWith({
  1. String? receiptId,
  2. String? customerId,
  3. String? customer,
  4. String? officeLocationId,
  5. String? paymentBy,
  6. String? recType,
  7. String? recTypeDisplay,
  8. String? recTypeColor,
  9. String? receiptDate,
  10. String? paymentTypeId,
  11. String? paymentType,
  12. String? checkNumber,
  13. double? amount,
  14. double? applied,
  15. double? refunded,
  16. double? remaining,
  17. String? auditNote,
  18. String? recordTitle,
  19. dynamic urlIdentifier,
  20. List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  21. List<FwStandardDataFwCustomValue>? custom,
  22. List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  23. FwStandardBusinessLogicFwBusinessLogic? original,
  24. List<FwStandardDataFwTranslatedValue>? translation,
  25. bool? hasImport,
  26. bool? hasDocuments,
  27. String? createdByUserId,
  28. String? createdByUserName,
  29. String? createdDateTime,
  30. String? modifiedByUserId,
  31. String? modifiedByUserName,
  32. String? modifiedDateTime,
})

Implementation

WebApiModulesAgentCustomerCreditCustomerCredit copyWith({
  String? receiptId,
  String? customerId,
  String? customer,
  String? officeLocationId,
  String? paymentBy,
  String? recType,
  String? recTypeDisplay,
  String? recTypeColor,
  String? receiptDate,
  String? paymentTypeId,
  String? paymentType,
  String? checkNumber,
  double? amount,
  double? applied,
  double? refunded,
  double? remaining,
  String? auditNote,
  String? recordTitle,
  dynamic urlIdentifier,
  List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  List<FwStandardDataFwCustomValue>? custom,
  List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  FwStandardBusinessLogicFwBusinessLogic? original,
  List<FwStandardDataFwTranslatedValue>? translation,
  bool? hasImport,
  bool? hasDocuments,
  String? createdByUserId,
  String? createdByUserName,
  String? createdDateTime,
  String? modifiedByUserId,
  String? modifiedByUserName,
  String? modifiedDateTime,
}) {
  return WebApiModulesAgentCustomerCreditCustomerCredit(
    receiptId: receiptId ?? this.receiptId,
    customerId: customerId ?? this.customerId,
    customer: customer ?? this.customer,
    officeLocationId: officeLocationId ?? this.officeLocationId,
    paymentBy: paymentBy ?? this.paymentBy,
    recType: recType ?? this.recType,
    recTypeDisplay: recTypeDisplay ?? this.recTypeDisplay,
    recTypeColor: recTypeColor ?? this.recTypeColor,
    receiptDate: receiptDate ?? this.receiptDate,
    paymentTypeId: paymentTypeId ?? this.paymentTypeId,
    paymentType: paymentType ?? this.paymentType,
    checkNumber: checkNumber ?? this.checkNumber,
    amount: amount ?? this.amount,
    applied: applied ?? this.applied,
    refunded: refunded ?? this.refunded,
    remaining: remaining ?? this.remaining,
    auditNote: auditNote ?? this.auditNote,
    recordTitle: recordTitle ?? this.recordTitle,
    urlIdentifier: urlIdentifier ?? this.urlIdentifier,
    fields: fields ?? this.fields,
    custom: custom ?? this.custom,
    defaultFieldAttributes:
        defaultFieldAttributes ?? this.defaultFieldAttributes,
    original: original ?? this.original,
    translation: translation ?? this.translation,
    hasImport: hasImport ?? this.hasImport,
    hasDocuments: hasDocuments ?? this.hasDocuments,
    createdByUserId: createdByUserId ?? this.createdByUserId,
    createdByUserName: createdByUserName ?? this.createdByUserName,
    createdDateTime: createdDateTime ?? this.createdDateTime,
    modifiedByUserId: modifiedByUserId ?? this.modifiedByUserId,
    modifiedByUserName: modifiedByUserName ?? this.modifiedByUserName,
    modifiedDateTime: modifiedDateTime ?? this.modifiedDateTime,
  );
}