copyWith method
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,
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,
);