InfoDevice.fromMap constructor

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

Creates an instance from native map data.

Implementation

factory InfoDevice.fromMap(Map<String, dynamic> map) {
  return InfoDevice(
    platform: map['platform'],
    model: map['model'],
    name: map['name'],
    manufacturer: map['manufacturer'],
    brand: map['brand'],
    device: map['device'],
    hardware: map['hardware'],
    systemName: map['system_name'],
    systemVersion: map['system_version'],
    osVersion: map['os_version'],
    sdkInt: map['sdk_int'],
    locale: map['locale'],
    timezone: map['timezone'],
    isEmulator: map['isEmulator'] ?? false,
  );
}