copyWith method
Implementation
Merchant copyWith({
String? id,
String? name,
String? address,
String? zipCode,
String? city,
String? country,
String? fiscalCode,
String? profileImgUrl,
List<PointOfSale>? posList,
}) {
return Merchant(
id: id ?? this.id,
name: name ?? this.name,
address: address ?? this.address,
zipCode: zipCode ?? this.zipCode,
city: city ?? this.city,
country: country ?? this.country,
fiscalCode: fiscalCode ?? this.fiscalCode,
profileImgUrl: profileImgUrl ?? this.profileImgUrl,
posList: posList ?? this.posList,
);
}