find_one.dart 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. class FindOneModel {
  2. int id;
  3. int createTime;
  4. String createBy;
  5. int updateTime;
  6. String updateBy;
  7. String sessionid;
  8. int dataId;
  9. int dataTable;
  10. String userId;
  11. String pwd;
  12. String createUserId;
  13. int statuz;
  14. String userName;
  15. FindOneModel(
  16. {this.id,
  17. this.createTime,
  18. this.createBy,
  19. this.updateTime,
  20. this.updateBy,
  21. this.sessionid,
  22. this.dataId,
  23. this.dataTable,
  24. this.userId,
  25. this.pwd,
  26. this.createUserId,
  27. this.statuz,
  28. this.userName});
  29. FindOneModel.fromJson(Map<String, dynamic> json) {
  30. id = json['id'];
  31. createTime = json['createTime'];
  32. createBy = json['createBy'];
  33. updateTime = json['updateTime'];
  34. updateBy = json['updateBy'];
  35. sessionid = json['sessionid'];
  36. dataId = json['dataId'];
  37. dataTable = json['dataTable'];
  38. userId = json['userId'];
  39. pwd = json['pwd'];
  40. createUserId = json['createUserId'];
  41. statuz = json['statuz'];
  42. userName = json['userName'];
  43. }
  44. Map<String, dynamic> toJson() {
  45. final Map<String, dynamic> data = new Map<String, dynamic>();
  46. data['id'] = this.id;
  47. data['createTime'] = this.createTime;
  48. data['createBy'] = this.createBy;
  49. data['updateTime'] = this.updateTime;
  50. data['updateBy'] = this.updateBy;
  51. data['sessionid'] = this.sessionid;
  52. data['dataId'] = this.dataId;
  53. data['dataTable'] = this.dataTable;
  54. data['userId'] = this.userId;
  55. data['pwd'] = this.pwd;
  56. data['createUserId'] = this.createUserId;
  57. data['statuz'] = this.statuz;
  58. data['userName'] = this.userName;
  59. return data;
  60. }
  61. }