PersonName.fromNative constructor

PersonName.fromNative(
  1. Map<Object?, Object?> data
)

Create a PersonName from a map.

Implementation

factory PersonName.fromNative(Map<Object?, Object?> data) {
  return PersonName(
    first: data['first'] as String?,
    middle: data['middle'] as String?,
    last: data['last'] as String?,
    prefix: data['prefix'] as String?,
    suffix: data['suffix'] as String?,
    formattedName: data['formattedName'] as String?,
    pronunciation: data['pronunciation'] as String?,
  );
}