fromMap static method

IosDeviceInfo fromMap(
  1. Map<String, dynamic> map
)

Deserializes from the map message received from _kChannel.

Implementation

static IosDeviceInfo fromMap(Map<String, dynamic> map) {
  return IosDeviceInfo._(
    data: map,
    name: map['name'],
    systemName: map['systemName'],
    systemVersion: map['systemVersion'],
    model: map['model'],
    localizedModel: map['localizedModel'],
    identifierForVendor: map['identifierForVendor'],
    isPhysicalDevice: map['isPhysicalDevice'],
    utsname:
        IosUtsname._fromMap(map['utsname']?.cast<String, dynamic>() ?? {}),
  );
}