fromMap static method

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

Deserializes from the message received from _kChannel.

Implementation

static AndroidDeviceInfo fromMap(Map<String, dynamic> map) {
  return AndroidDeviceInfo(
    version:
        AndroidBuildVersion._fromMap(map['version'].cast<String, dynamic>()),
    board: map['board'],
    bootloader: map['bootloader'],
    brand: map['brand'],
    device: map['device'],
    display: map['display'],
    fingerprint: map['fingerprint'],
    hardware: map['hardware'],
    host: map['host'],
    id: map['id'],
    manufacturer: map['manufacturer'],
    model: map['model'],
    product: map['product'],
    supported32BitAbis: _fromList(map['supported32BitAbis']),
    supported64BitAbis: _fromList(map['supported64BitAbis']),
    supportedAbis: _fromList(map['supportedAbis']),
    tags: map['tags'],
    type: map['type'],
    isPhysicalDevice: map['isPhysicalDevice'],
    androidId: map['androidId'],
    systemFeatures: _fromList(map['systemFeatures']),
    storage: AndroidStorage._fromMap(map['storage'].cast<String, dynamic>()),
  );
}