copyWith method
Implementation
ContactLabels<T> copyWith({
String? type,
String? description,
String? emailAddress,
String? phoneNumber,
List<ContactTypeSelection<T>>? contactTypes,
}) {
return ContactLabels<T>(
type: type ?? this.type,
description: description ?? this.description,
emailAddress: emailAddress ?? this.emailAddress,
phoneNumber: phoneNumber ?? this.phoneNumber,
contactTypes: contactTypes ?? this.contactTypes,
);
}