hardware.dart 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. class Hardware {
  2. String? ver;
  3. String? hardwareVer;
  4. String? name;
  5. String? msg;
  6. String? file;
  7. String? time;
  8. String? min_hardware_ver;
  9. String? max_hardware_ver;
  10. String? min_app_ver;
  11. String? max_app_ver;
  12. String? localVer;
  13. List<String>? devices;
  14. Hardware({this.ver, this.hardwareVer, this.name, this.msg, this.file, this.time});
  15. Hardware.fromJson(Map<String, dynamic> json) {
  16. ver = json['ver'];
  17. hardwareVer = json['hardware_ver'];
  18. name = json['name'];
  19. msg = json['msg'];
  20. file = json['file'];
  21. time = json['time'];
  22. min_hardware_ver = json['min_hardware_ver'];
  23. max_hardware_ver = json['max_hardware_ver'];
  24. min_app_ver = json['min_app_ver'];
  25. max_app_ver = json['max_app_ver'];
  26. }
  27. Map<String, dynamic> toJson() {
  28. final Map<String, dynamic> data = new Map<String, dynamic>();
  29. data['ver'] = this.ver;
  30. data['hardware_ver'] = this.hardwareVer;
  31. data['name'] = this.name;
  32. data['msg'] = this.msg;
  33. data['file'] = this.file;
  34. data['time'] = this.time;
  35. return data;
  36. }
  37. }