Phone.fromNative constructor

Phone.fromNative(
  1. Map data
)

Create a Phone from native data.

Implementation

Phone.fromNative(Map data)
    : number = data['number'] as String?,
      type = PhoneType.values[data['type'] as int];