ExtendedBluetoothDevice.fromJson constructor

ExtendedBluetoothDevice.fromJson(
  1. Map map
)

Implementation

factory ExtendedBluetoothDevice.fromJson(Map map) {
  ExtendedBluetoothDevice d = ExtendedBluetoothDevice();
  d.date = map["date"];
  d.disconnectStatus = map["disconnectStatus"];
  d.groupId = map["groupId"];
  d.isBicycleLock = map["isBicycleLock"];
  d.isCyLinder = map["isCyLinder"];
  d.isDfuMode = map["isDfuMode"];
  d.isGlassLock = map["isGlassLock"];
  d.isLockcar = map["isLockcar"];
  d.isNoLockService = map["isNoLockService"];
  d.isPadLock = map["isPadLock"];
  d.isRemoteControlDevice = map["isRemoteControlDevice"];
  d.isRoomLock = map["isRoomLock"];
  d.isSafeLock = map["isSafeLock"];
  d.isTouch = map["isTouch"];
  d.isUnlock = map["isUnlock"];
  d.isWristband = map["isWristband"];
  d.lockType = map["lockType"];
  d.orgId = map["orgId"];
  d.parkStatus = map["parkStatus"];
  d.protocolType = map["protocolType"];
  d.protocolVersion = map["protocolVersion"];
  d.remoteUnlockSwitch = map["remoteUnlockSwitch"];
  d.scene = map["scene"];
  d.txPowerLevel = map["txPowerLevel"];
  d.batteryCapacity = map["batteryCapacity"];
  Device de = Device();
  de.mAddress = map["device"]["mAddress"];
  d.device = de;
  d.isSettingMode = map["isSettingMode"];
  d.mAddress = map["mAddress"];
  d.name = map["name"];
  d.rssi = map["rssi"];
  d.scanRecord = map["scanRecord"];
  return d;
}