PersonNameComponents.fromMap constructor

PersonNameComponents.fromMap(
  1. Map? map
)

Implementation

factory PersonNameComponents.fromMap(Map? map) {
  if (map == null) {
    return PersonNameComponents();
  }

  return PersonNameComponents(
    namePrefix: map['namePrefix'],
    givenName: map['givenName'],
    middleName: map['middleName'],
    familyName: map['familyName'],
    nameSuffix: map['nameSuffix'],
    nickname: map['nickname'],
  );
}