video_detail.dart 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. class VideoDetailModel {
  2. int id;
  3. int createTime;
  4. String createBy;
  5. int updateTime;
  6. String updateBy;
  7. String title;
  8. String descr;
  9. String cover;
  10. String url;
  11. int brandId;
  12. String userId;
  13. double reward;
  14. int favoriteNum;
  15. int likeNum;
  16. int browseNum;
  17. int hotFlag;
  18. int payNum;
  19. int statuz;
  20. int checkFlag;
  21. String checkComment;
  22. int platformFlag;
  23. String brandName;
  24. int isFavorite;
  25. int isLike;
  26. String avatarUrl;
  27. String nickname;
  28. int favoriteId;
  29. int likeId;
  30. VideoDetailModel(
  31. {this.id,
  32. this.createTime,
  33. this.createBy,
  34. this.updateTime,
  35. this.updateBy,
  36. this.title,
  37. this.descr,
  38. this.cover,
  39. this.url,
  40. this.brandId,
  41. this.userId,
  42. this.reward,
  43. this.favoriteNum,
  44. this.likeNum,
  45. this.browseNum,
  46. this.hotFlag,
  47. this.payNum,
  48. this.statuz,
  49. this.checkFlag,
  50. this.checkComment,
  51. this.platformFlag,
  52. this.brandName,
  53. this.isFavorite,
  54. this.isLike,
  55. this.avatarUrl,
  56. this.nickname,
  57. this.favoriteId,
  58. this.likeId});
  59. VideoDetailModel.fromJson(Map<String, dynamic> json) {
  60. id = json['id'];
  61. createTime = json['createTime'];
  62. createBy = json['createBy'];
  63. updateTime = json['updateTime'];
  64. updateBy = json['updateBy'];
  65. title = json['title'];
  66. descr = json['descr'];
  67. cover = json['cover'];
  68. url = json['url'];
  69. brandId = json['brandId'];
  70. userId = json['userId'];
  71. reward = json['reward'];
  72. favoriteNum = json['favoriteNum'];
  73. likeNum = json['likeNum'];
  74. browseNum = json['browseNum'];
  75. hotFlag = json['hotFlag'];
  76. payNum = json['payNum'];
  77. statuz = json['statuz'];
  78. checkFlag = json['checkFlag'];
  79. checkComment = json['checkComment'];
  80. platformFlag = json['platformFlag'];
  81. brandName = json['brandName'];
  82. isFavorite = json['isFavorite'];
  83. isLike = json['isLike'];
  84. avatarUrl = json['avatarUrl'];
  85. nickname = json['nickname'];
  86. favoriteId = json['favoriteId'];
  87. likeId = json['likeId'];
  88. }
  89. Map<String, dynamic> toJson() {
  90. final Map<String, dynamic> data = new Map<String, dynamic>();
  91. data['id'] = this.id;
  92. data['createTime'] = this.createTime;
  93. data['createBy'] = this.createBy;
  94. data['updateTime'] = this.updateTime;
  95. data['updateBy'] = this.updateBy;
  96. data['title'] = this.title;
  97. data['descr'] = this.descr;
  98. data['cover'] = this.cover;
  99. data['url'] = this.url;
  100. data['brandId'] = this.brandId;
  101. data['userId'] = this.userId;
  102. data['reward'] = this.reward;
  103. data['favoriteNum'] = this.favoriteNum;
  104. data['likeNum'] = this.likeNum;
  105. data['browseNum'] = this.browseNum;
  106. data['hotFlag'] = this.hotFlag;
  107. data['payNum'] = this.payNum;
  108. data['statuz'] = this.statuz;
  109. data['checkFlag'] = this.checkFlag;
  110. data['checkComment'] = this.checkComment;
  111. data['platformFlag'] = this.platformFlag;
  112. data['brandName'] = this.brandName;
  113. data['isFavorite'] = this.isFavorite;
  114. data['isLike'] = this.isLike;
  115. data['avatarUrl'] = this.avatarUrl;
  116. data['nickname'] = this.nickname;
  117. data['favoriteId'] = this.favoriteId;
  118. data['likeId'] = this.likeId;
  119. return data;
  120. }
  121. }