DeviceSoftwareInfo.fromJson constructor

DeviceSoftwareInfo.fromJson(
  1. Map<String, dynamic> map
)

Implementation

factory DeviceSoftwareInfo.fromJson(Map<String, dynamic> map) {
  return DeviceSoftwareInfo(
      deviceType: map["deviceType"],
      passwordSum: map["passwordSum"],
      passwordType: _listToUserAuthType(map["passwordType"]),
      cardSum: map["cardSum"],
      cardType: _listToUserAuthType(map["cardType"]),
      markSum: map["markSum"],
      markType: _listToUserAuthType(map["markType"]),
      faceSum: map["faceSum"],
      faceType: _listToUserAuthType(map["faceType"]),
      modelType: _listToDeviceSupportMode(map["modelType"]),
      connectionNumber: map["connectionNumber"],
      otherFunction: _listToDeviceOtherFunction(map["otherFunction"]));
}