Phone.fromNative constructor

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

Create a Phone from the given data.

Implementation

factory Phone.fromNative(Map<Object?, Object?> data) {
  return Phone(
    number: data['number'] as String?,
    type: PhoneType.fromRawValue(data['type'] as int? ?? 0),
  );
}