ArtemisAcpsDeviceConfig.fromJson constructor

ArtemisAcpsDeviceConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ArtemisAcpsDeviceConfig.fromJson(Map<String, dynamic> json) => ArtemisAcpsDeviceConfig(
  deviceId: json["DeviceID"],
  deviceType: ReaderDeviceType.values.firstWhereOrNull((a)=>a.typeName == json["DeviceType"]),
  workstationToken: json["WorkstationToken"],
  timeout: json["Timeout"],
  version: json["Version"],
  os: json["OS"],
);