o2_cloud_bind_form.dart 929 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. class O2CloudBindData {
  2. String? unit; //上一步 选择的公司名称
  3. String? mobile; //手机号码
  4. String? code; //验证码
  5. String? name; //设备号 友盟的token 中心服务器推送消息需要
  6. String? deviceType; //设备类型 android ios
  7. String? account; //账号 就是手机号码对应的id
  8. O2CloudBindData(
  9. {this.unit,
  10. this.mobile,
  11. this.code,
  12. this.name,
  13. this.deviceType,
  14. this.account,
  15. });
  16. O2CloudBindData.fromJson(Map<String, dynamic> jsonMap) {
  17. unit = jsonMap['unit'];
  18. mobile = jsonMap['mobile'];
  19. code = jsonMap['code'];
  20. name = jsonMap['name'];
  21. deviceType = jsonMap['deviceType'];
  22. account = jsonMap['account'];
  23. }
  24. Map<String, dynamic> toJson() => {
  25. "unit": unit,
  26. "mobile": mobile,
  27. "code": code,
  28. "name": name,
  29. "deviceType": deviceType,
  30. "account": account,
  31. };
  32. }