fromMap static method

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

Implementation

static DeviceInfo fromMap(Map<String, dynamic> device) {
  final deviceInfo = DeviceInfo();
  deviceInfo.platform = device['platform'];
  deviceInfo.appName = device['appName'];
  deviceInfo.appVersion = device['appVersion'];
  deviceInfo.maxProtocolVersion = device['maxProtocolVersion'];
  deviceInfo.features = device['features'];
  return deviceInfo;
}