123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import 'package:json_annotation/json_annotation.dart';
- part 'device_req.g.dart';
- @JsonSerializable()
- class DeviceReq {
- /// 登录用户名
- final String username;
- /// 登录手机品牌,如Redmi
- final String phoneBrand;
- /// 登录手机认证型号,如22120RN86C
- final String phoneModel;
- /// 登录手机版本,如14
- final String phoneRelease;
- /// 登录手机所在地址,如"北京市西城区月坛北街18号靠近物资大院"
- final String phoneAddress;
- /// 登录蓝牙mac地址
- final String bleMac;
- /// 登录蓝牙名称
- final String bleName;
- const DeviceReq(
- {required this.username,
- required this.phoneBrand,
- required this.phoneModel,
- required this.phoneRelease,
- required this.phoneAddress,
- required this.bleMac,
- required this.bleName});
- factory DeviceReq.fromJson(Map<String, dynamic> json) => _$DeviceReqFromJson(json);
- Map<String, dynamic> toJson() => _$DeviceReqToJson(this);
- }
|