toMap method

  1. @override
Map<String, dynamic> toMap()
override

Serializes IosDeviceInfo to a map.

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    'name': name,
    'model': model,
    'systemName': systemName,
    'utsname': utsname._toMap(),
    'systemVersion': systemVersion,
    'localizedModel': localizedModel,
    'identifierForVendor': identifierForVendor,
    'isPhysicalDevice': isPhysicalDevice.toString(),
  };
}