device_req.dart 999 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'device_req.g.dart';
  3. @JsonSerializable()
  4. class DeviceReq {
  5. /// 登录用户名
  6. final String username;
  7. /// 登录手机品牌,如Redmi
  8. final String phoneBrand;
  9. /// 登录手机认证型号,如22120RN86C
  10. final String phoneModel;
  11. /// 登录手机版本,如14
  12. final String phoneRelease;
  13. /// 登录手机所在地址,如"北京市西城区月坛北街18号靠近物资大院"
  14. final String phoneAddress;
  15. /// 登录蓝牙mac地址
  16. final String bleMac;
  17. /// 登录蓝牙名称
  18. final String bleName;
  19. const DeviceReq(
  20. {required this.username,
  21. required this.phoneBrand,
  22. required this.phoneModel,
  23. required this.phoneRelease,
  24. required this.phoneAddress,
  25. required this.bleMac,
  26. required this.bleName});
  27. factory DeviceReq.fromJson(Map<String, dynamic> json) => _$DeviceReqFromJson(json);
  28. Map<String, dynamic> toJson() => _$DeviceReqToJson(this);
  29. }