DeviceInfo.fromMap constructor

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

Implementation

factory DeviceInfo.fromMap(Map<String, dynamic> map) {
  return DeviceInfo(
    deviceName: map['deviceName'],
    deviceVersion: map['deviceVersion'],
    identifier: map['identifier'],
    appType: map['appType'],
    deviceType: map['deviceType'],
    browser: map['browser'] == null ? "browser" : map["browser"],
    browserVersion: map['browserVersion'] ?? "browserVersion",
    ipAddress: map['ipAddress'] ?? "ipAddress",
  );
}