hasName method

bool hasName(
  1. PersonNameDtoUseEnum nameUse
)

Implementation

bool hasName(PersonNameDtoUseEnum nameUse) {
  return this.names.any((element) => element.use == nameUse);
}