bind_info.dart 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. class BindInfo {
  2. int result;
  3. int code;
  4. String msg;
  5. BindInfoData data;
  6. BindInfo({this.result, this.code, this.msg, this.data});
  7. BindInfo.fromJson(Map<String, dynamic> json) {
  8. result = json['result'];
  9. code = json['code'];
  10. msg = json['msg'];
  11. data =
  12. json['data'] != null ? new BindInfoData.fromJson(json['data']) : null;
  13. }
  14. Map<String, dynamic> toJson() {
  15. final Map<String, dynamic> data = new Map<String, dynamic>();
  16. data['result'] = this.result;
  17. data['code'] = this.code;
  18. data['msg'] = this.msg;
  19. if (this.data != null) {
  20. data['data'] = this.data.toJson();
  21. }
  22. return data;
  23. }
  24. }
  25. class BindInfoData {
  26. bool password;
  27. String phone;
  28. bool weixin;
  29. bool qq;
  30. BindInfoData({this.password, this.phone, this.weixin, this.qq});
  31. BindInfoData.fromJson(Map<String, dynamic> json) {
  32. password = json['password'];
  33. phone = json['phone'];
  34. weixin = json['weixin'];
  35. qq = json['qq'];
  36. }
  37. Map<String, dynamic> toJson() {
  38. final Map<String, dynamic> data = new Map<String, dynamic>();
  39. data['password'] = this.password;
  40. data['phone'] = this.phone;
  41. data['weixin'] = this.weixin;
  42. data['qq'] = this.qq;
  43. return data;
  44. }
  45. }