copyWith method
Implementation
Owner copyWith(
{List<String>? names,
List<PhoneNumber>? phoneNumbers,
List<Email>? emails,
List<Address>? addresses}) {
return Owner(
names: names ?? this.names,
phoneNumbers: phoneNumbers ?? this.phoneNumbers,
emails: emails ?? this.emails,
addresses: addresses ?? this.addresses);
}