Phone.fromNative constructor
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),
);
}