TTLockScanModel constructor

TTLockScanModel(
  1. Map map
)

Implementation

TTLockScanModel(Map map) {
  this.lockName = map[TTResponse.lockName];
  this.lockMac = map[TTResponse.lockMac];
  this.isInited = map[TTResponse.isInited];
  this.isAllowUnlock = map[TTResponse.isAllowUnlock];
  // this.isDfuMode = map[TTResponse.isDfuMode];
  this.electricQuantity = map[TTResponse.electricQuantity];
  this.lockVersion = map[TTResponse.lockVersion];
  this.lockSwitchState =
      TTLockSwitchState.values[map[TTResponse.lockSwitchState]];
  this.rssi = map[TTResponse.rssi];
  this.oneMeterRssi = map[TTResponse.oneMeterRssi];
  this.timestamp = map[TTResponse.timestamp];
}