copyWith method

CrmLead copyWith({
  1. int? isPro,
  2. String? firstName,
  3. String? lastName,
  4. String? email,
  5. String? website,
  6. String? mobilePhone,
  7. String? mobilePrefix,
  8. String? fixPhone,
  9. String? fixPrefix,
  10. int? organisationId,
  11. String? street,
  12. String? zip,
  13. String? city,
  14. String? state,
  15. String? country,
  16. int? statusId,
  17. String? comment,
  18. String? mainLanguage,
  19. String? secondaryLanguage,
  20. int? crmOrganisationId,
  21. int? id,
  22. String? uuid,
  23. int? createdBy,
  24. int? createdAt,
  25. int? deletedAt,
  26. CrmStatus? status,
  27. String? thumbnail,
})

Implementation

CrmLead copyWith({
  int? isPro,
  String? firstName,
  String? lastName,
  String? email,
  String? website,
  String? mobilePhone,
  String? mobilePrefix,
  String? fixPhone,
  String? fixPrefix,
  int? organisationId,
  String? street,
  String? zip,
  String? city,
  String? state,
  String? country,
  int? statusId,
  String? comment,
  String? mainLanguage,
  String? secondaryLanguage,
  int? crmOrganisationId,
  int? id,
  String? uuid,
  int? createdBy,
  int? createdAt,
  int? deletedAt,
  CrmStatus? status,
  String? thumbnail,
}) =>
    CrmLead(
      isPro: isPro ?? this.isPro,
      firstName: firstName ?? this.firstName,
      lastName: lastName ?? this.lastName,
      email: email ?? this.email,
      website: website ?? this.website,
      mobilePhone: mobilePhone ?? this.mobilePhone,
      mobilePrefix: mobilePrefix ?? this.mobilePrefix,
      fixPhone: fixPhone ?? this.fixPhone,
      fixPrefix: fixPrefix ?? this.fixPrefix,
      organisationId: organisationId ?? this.organisationId,
      street: street ?? this.street,
      zip: zip ?? this.zip,
      city: city ?? this.city,
      state: state ?? this.state,
      country: country ?? this.country,
      statusId: statusId ?? this.statusId,
      comment: comment ?? this.comment,
      mainLanguage: mainLanguage ?? this.mainLanguage,
      secondaryLanguage: secondaryLanguage ?? this.secondaryLanguage,
      crmOrganisationId: crmOrganisationId ?? this.crmOrganisationId,
      id: id ?? this.id,
      uuid: uuid ?? this.uuid,
      createdBy: createdBy ?? this.createdBy,
      createdAt: createdAt ?? this.createdAt,
      deletedAt: deletedAt ?? this.deletedAt,
      status: status ?? this.status,
      thumbnail: thumbnail ?? this.thumbnail,
    );