fromMap static method
Deserializes from the message received from _kChannel
.
Implementation
static AndroidDeviceInfo fromMap(Map<String, dynamic> map) {
return AndroidDeviceInfo._(
data: map,
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'],
name: map['name'] ?? '',
supported32BitAbis: _fromList(map['supported32BitAbis'] ?? <String>[]),
supported64BitAbis: _fromList(map['supported64BitAbis'] ?? <String>[]),
supportedAbis: _fromList(map['supportedAbis'] ?? []),
tags: map['tags'],
type: map['type'],
isPhysicalDevice: map['isPhysicalDevice'],
systemFeatures: _fromList(map['systemFeatures'] ?? []),
serialNumber: map['serialNumber'],
isLowRamDevice: map['isLowRamDevice'],
physicalRamSize: map['physicalRamSize'],
availableRamSize: map['availableRamSize'],
);
}