me_skill_model.dart 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. /// code : "OK"
  2. /// data : {"list":[{"skillId":"255526688522240","skillName":"语音速配","skillIcon":"http://media.qn.timichat.net/skillIcon/2353437ffdc145e09dc685a2a514d781.png","skillImage":"http://media.qn.timichat.net/skillImage/c23b38d1519a437099970a0dd2f01c02.png","skillType":2,"unit":2,"sort":1,"voiceMatchEnable":1,"skillTags":[{"tagId":"255591029145600","tagName":"语音速配"},{"tagId":"255591087865856","tagName":"御姐音"}]},{"skillId":"244737344798720","skillName":"小睡眠","skillIcon":"http://media.qn.timichat.net/skillIcon/769bcfa8cf304796a7ae21ab8d682357.png","skillImage":"http://media.qn.timichat.net/skillImage/3e652c3a2f5d41c8909e9a17c6d50418.png","skillType":2,"unit":1,"sort":2,"voiceMatchEnable":0,"skillTags":[{"tagId":"255600348889088","tagName":"读电台"},{"tagId":"255600080453632","tagName":"讲故事"},{"tagId":"244737420296192","tagName":"温柔哄睡"}]},{"skillId":"236813029474304","skillName":"人工闹钟","skillIcon":"http://media.qn.timichat.net/skillIcon/1673942ecb164a79942d72ee951a9e6b.png","skillImage":"http://media.qn.timichat.net/skillImage/f8396bc5cc3e4edc994ce077608f259d.png","skillType":2,"unit":1,"sort":3,"voiceMatchEnable":0,"skillTags":[{"tagId":"255603939213312","tagName":"温柔闹钟"},{"tagId":"244736413663232","tagName":"命令式闹钟"},{"tagId":"244736354942976","tagName":"萝莉音"}]},{"skillId":"236814279376896","skillName":"王者荣耀","skillIcon":"http://media.qn.timichat.net/skillIcon/2ac9e9f705e04fa9a7d55b54b8a0ede4.png","skillImage":"http://media.qn.timichat.net/skillImage/b638eec6716f4a43813f9fd735799999.png","skillType":1,"unit":4,"sort":4,"voiceMatchEnable":0,"skillTags":[{"tagId":"255602932580352","tagName":"荣耀黄金"},{"tagId":"255602890637312","tagName":"尊贵铂金"},{"tagId":"255602848694272","tagName":"永恒钻石"},{"tagId":"255602798362624","tagName":"至尊星耀"},{"tagId":"236814455537664","tagName":"钻石"},{"tagId":"244736531103744","tagName":"王者"},{"tagId":"236814363262976","tagName":"最强王者"}]},{"skillId":"244736849870848","skillName":"和平精英","skillIcon":"http://media.qn.timichat.net/skillIcon/c6f1fc7208a040feaa84d4beeccfd558.png","skillImage":"http://media.qn.timichat.net/skillImage/76f3ee4f2e624be3aecc0ad3e8a01529.png","skillType":1,"unit":4,"sort":5,"voiceMatchEnable":0,"skillTags":[{"tagId":"255602462818304","tagName":"英勇黄金"},{"tagId":"255602420875264","tagName":"坚韧铂金"},{"tagId":"255602362155008","tagName":"不朽钻石"},{"tagId":"255602295046144","tagName":"荣耀皇冠"},{"tagId":"255602236325888","tagName":"超级王牌"},{"tagId":"244737000865792","tagName":"无双战神"},{"tagId":"244736958922752","tagName":"钻石"},{"tagId":"244736908591104","tagName":"青铜"}]},{"skillId":"236829857021952","skillName":"音乐","skillIcon":"http://media.qn.timichat.net/skillIcon/feaf63eee6454e34af48549473dacd6a.png","skillImage":"http://media.qn.timichat.net/skillImage/a597462b1f194fd4b953e3ae81d8ff5f.png","skillType":2,"unit":5,"sort":6,"voiceMatchEnable":0,"skillTags":[{"tagId":"255599862349824","tagName":"古风"},{"tagId":"255599820406784","tagName":"民谣"},{"tagId":"255599753297920","tagName":"rap"},{"tagId":"255599694577664","tagName":"摇滚"},{"tagId":"244735960678400","tagName":"流行"},{"tagId":"236830066737152","tagName":"萝莉音"}]},{"skillId":"236024114446336","skillName":"英雄联盟","skillIcon":"http://media.qn.timichat.net/skillIcon/fdc8d2e6bff0430eb99f54b30920563b.png","skillImage":"http://media.qn.timichat.net/skillImage/35933ed20deb44d3bc998385f24bbf1e.png","skillType":1,"unit":3,"sort":7,"voiceMatchEnable":0,"skillTags":[{"tagId":"255599459696640","tagName":"不屈白银"},{"tagId":"255599417753600","tagName":"荣耀黄金"},{"tagId":"255599367421952","tagName":"华贵铂金"},{"tagId":"255599308701696","tagName":"璀璨钻石"},{"tagId":"255599258370048","tagName":"超凡大师"},{"tagId":"255599208038400","tagName":"傲视宗师"},{"tagId":"255598796996608","tagName":"最强王者"},{"tagId":"236053885616128","tagName":"荣耀皇冠"},{"tagId":"236053977890816","tagName":"超级王牌"},{"tagId":"236053935947776","tagName":"无双战神"},{"tagId":"236046797242368","tagName":"d"}]},{"skillId":"1","skillName":"情感树洞","skillIcon":"http://media.qn.timichat.net/skillIcon/bbdaade862f4468b87c24c67c029dfbb.png","skillImage":"http://media.qn.timichat.net/skillImage/0420a85f436149e69f7e965c0bbd9c82.png","skillType":2,"unit":1,"sort":8,"voiceMatchEnable":0,"skillTags":[{"tagId":"255601934336000","tagName":"聆听"},{"tagId":"255601875615744","tagName":"声优"},{"tagId":"255601825284096","tagName":"暖心树洞"},{"tagId":"255601774952449","tagName":"解忧树洞"},{"tagId":"255601724620800","tagName":"欢乐逗比"},{"tagId":"255601674289152","tagName":"读电台"},{"tagId":"255601607180288","tagName":"温柔哄睡"},{"tagId":"255601472962560","tagName":"古风"},{"tagId":"255601431019520","tagName":"民谣"},{"tagId":"255601389076480","tagName":"rap"},{"tagId":"244735398641664","tagName":"摇滚"},{"tagId":"1","tagName":"开火车"}]}]}
  3. /// msg : ""
  4. /// success : true
  5. class MeSkillModel {
  6. MeSkillModel({
  7. String? code,
  8. Data? data,
  9. String? msg,
  10. bool? success,}){
  11. _code = code;
  12. _data = data;
  13. _msg = msg;
  14. _success = success;
  15. }
  16. MeSkillModel.fromJson(dynamic json) {
  17. _code = json['code'];
  18. _data = json['data'] != null ? Data.fromJson(json['data']) : null;
  19. _msg = json['msg'];
  20. _success = json['success'];
  21. }
  22. String? _code;
  23. Data? _data;
  24. String? _msg;
  25. bool? _success;
  26. String? get code => _code;
  27. Data? get data => _data;
  28. String? get msg => _msg;
  29. bool? get success => _success;
  30. Map<String, dynamic> toJson() {
  31. final map = <String, dynamic>{};
  32. map['code'] = _code;
  33. if (_data != null) {
  34. map['data'] = _data?.toJson();
  35. }
  36. map['msg'] = _msg;
  37. map['success'] = _success;
  38. return map;
  39. }
  40. }
  41. /// list : [{"skillId":"255526688522240","skillName":"语音速配","skillIcon":"http://media.qn.timichat.net/skillIcon/2353437ffdc145e09dc685a2a514d781.png","skillImage":"http://media.qn.timichat.net/skillImage/c23b38d1519a437099970a0dd2f01c02.png","skillType":2,"unit":2,"sort":1,"voiceMatchEnable":1,"skillTags":[{"tagId":"255591029145600","tagName":"语音速配"},{"tagId":"255591087865856","tagName":"御姐音"}]},{"skillId":"244737344798720","skillName":"小睡眠","skillIcon":"http://media.qn.timichat.net/skillIcon/769bcfa8cf304796a7ae21ab8d682357.png","skillImage":"http://media.qn.timichat.net/skillImage/3e652c3a2f5d41c8909e9a17c6d50418.png","skillType":2,"unit":1,"sort":2,"voiceMatchEnable":0,"skillTags":[{"tagId":"255600348889088","tagName":"读电台"},{"tagId":"255600080453632","tagName":"讲故事"},{"tagId":"244737420296192","tagName":"温柔哄睡"}]},{"skillId":"236813029474304","skillName":"人工闹钟","skillIcon":"http://media.qn.timichat.net/skillIcon/1673942ecb164a79942d72ee951a9e6b.png","skillImage":"http://media.qn.timichat.net/skillImage/f8396bc5cc3e4edc994ce077608f259d.png","skillType":2,"unit":1,"sort":3,"voiceMatchEnable":0,"skillTags":[{"tagId":"255603939213312","tagName":"温柔闹钟"},{"tagId":"244736413663232","tagName":"命令式闹钟"},{"tagId":"244736354942976","tagName":"萝莉音"}]},{"skillId":"236814279376896","skillName":"王者荣耀","skillIcon":"http://media.qn.timichat.net/skillIcon/2ac9e9f705e04fa9a7d55b54b8a0ede4.png","skillImage":"http://media.qn.timichat.net/skillImage/b638eec6716f4a43813f9fd735799999.png","skillType":1,"unit":4,"sort":4,"voiceMatchEnable":0,"skillTags":[{"tagId":"255602932580352","tagName":"荣耀黄金"},{"tagId":"255602890637312","tagName":"尊贵铂金"},{"tagId":"255602848694272","tagName":"永恒钻石"},{"tagId":"255602798362624","tagName":"至尊星耀"},{"tagId":"236814455537664","tagName":"钻石"},{"tagId":"244736531103744","tagName":"王者"},{"tagId":"236814363262976","tagName":"最强王者"}]},{"skillId":"244736849870848","skillName":"和平精英","skillIcon":"http://media.qn.timichat.net/skillIcon/c6f1fc7208a040feaa84d4beeccfd558.png","skillImage":"http://media.qn.timichat.net/skillImage/76f3ee4f2e624be3aecc0ad3e8a01529.png","skillType":1,"unit":4,"sort":5,"voiceMatchEnable":0,"skillTags":[{"tagId":"255602462818304","tagName":"英勇黄金"},{"tagId":"255602420875264","tagName":"坚韧铂金"},{"tagId":"255602362155008","tagName":"不朽钻石"},{"tagId":"255602295046144","tagName":"荣耀皇冠"},{"tagId":"255602236325888","tagName":"超级王牌"},{"tagId":"244737000865792","tagName":"无双战神"},{"tagId":"244736958922752","tagName":"钻石"},{"tagId":"244736908591104","tagName":"青铜"}]},{"skillId":"236829857021952","skillName":"音乐","skillIcon":"http://media.qn.timichat.net/skillIcon/feaf63eee6454e34af48549473dacd6a.png","skillImage":"http://media.qn.timichat.net/skillImage/a597462b1f194fd4b953e3ae81d8ff5f.png","skillType":2,"unit":5,"sort":6,"voiceMatchEnable":0,"skillTags":[{"tagId":"255599862349824","tagName":"古风"},{"tagId":"255599820406784","tagName":"民谣"},{"tagId":"255599753297920","tagName":"rap"},{"tagId":"255599694577664","tagName":"摇滚"},{"tagId":"244735960678400","tagName":"流行"},{"tagId":"236830066737152","tagName":"萝莉音"}]},{"skillId":"236024114446336","skillName":"英雄联盟","skillIcon":"http://media.qn.timichat.net/skillIcon/fdc8d2e6bff0430eb99f54b30920563b.png","skillImage":"http://media.qn.timichat.net/skillImage/35933ed20deb44d3bc998385f24bbf1e.png","skillType":1,"unit":3,"sort":7,"voiceMatchEnable":0,"skillTags":[{"tagId":"255599459696640","tagName":"不屈白银"},{"tagId":"255599417753600","tagName":"荣耀黄金"},{"tagId":"255599367421952","tagName":"华贵铂金"},{"tagId":"255599308701696","tagName":"璀璨钻石"},{"tagId":"255599258370048","tagName":"超凡大师"},{"tagId":"255599208038400","tagName":"傲视宗师"},{"tagId":"255598796996608","tagName":"最强王者"},{"tagId":"236053885616128","tagName":"荣耀皇冠"},{"tagId":"236053977890816","tagName":"超级王牌"},{"tagId":"236053935947776","tagName":"无双战神"},{"tagId":"236046797242368","tagName":"d"}]},{"skillId":"1","skillName":"情感树洞","skillIcon":"http://media.qn.timichat.net/skillIcon/bbdaade862f4468b87c24c67c029dfbb.png","skillImage":"http://media.qn.timichat.net/skillImage/0420a85f436149e69f7e965c0bbd9c82.png","skillType":2,"unit":1,"sort":8,"voiceMatchEnable":0,"skillTags":[{"tagId":"255601934336000","tagName":"聆听"},{"tagId":"255601875615744","tagName":"声优"},{"tagId":"255601825284096","tagName":"暖心树洞"},{"tagId":"255601774952449","tagName":"解忧树洞"},{"tagId":"255601724620800","tagName":"欢乐逗比"},{"tagId":"255601674289152","tagName":"读电台"},{"tagId":"255601607180288","tagName":"温柔哄睡"},{"tagId":"255601472962560","tagName":"古风"},{"tagId":"255601431019520","tagName":"民谣"},{"tagId":"255601389076480","tagName":"rap"},{"tagId":"244735398641664","tagName":"摇滚"},{"tagId":"1","tagName":"开火车"}]}]
  42. class Data {
  43. Data({
  44. List<SkillDetailList>? list,}){
  45. _list = list;
  46. }
  47. Data.fromJson(dynamic json) {
  48. if (json['list'] != null) {
  49. _list = [];
  50. json['list'].forEach((v) {
  51. _list?.add(SkillDetailList.fromJson(v));
  52. });
  53. }
  54. }
  55. List<SkillDetailList>? _list;
  56. List<SkillDetailList>? get list => _list;
  57. Map<String, dynamic> toJson() {
  58. final map = <String, dynamic>{};
  59. if (_list != null) {
  60. map['list'] = _list?.map((v) => v.toJson()).toList();
  61. }
  62. return map;
  63. }
  64. }
  65. /// skillId : "255526688522240"
  66. /// skillName : "语音速配"
  67. /// skillIcon : "http://media.qn.timichat.net/skillIcon/2353437ffdc145e09dc685a2a514d781.png"
  68. /// skillImage : "http://media.qn.timichat.net/skillImage/c23b38d1519a437099970a0dd2f01c02.png"
  69. /// skillType : 2
  70. /// unit : 2
  71. /// sort : 1
  72. /// voiceMatchEnable : 1
  73. /// skillTags : [{"tagId":"255591029145600","tagName":"语音速配"},{"tagId":"255591087865856","tagName":"御姐音"}]
  74. class SkillDetailList {
  75. SkillDetailList({
  76. String? skillId,
  77. String? skillName,
  78. String? skillIcon,
  79. String? skillImage,
  80. int? skillType,
  81. int? unit,
  82. int? sort,
  83. int? voiceMatchEnable,
  84. List<SkillTags>? skillTags,}){
  85. _skillId = skillId;
  86. _skillName = skillName;
  87. _skillIcon = skillIcon;
  88. _skillImage = skillImage;
  89. _skillType = skillType;
  90. _unit = unit;
  91. _sort = sort;
  92. _voiceMatchEnable = voiceMatchEnable;
  93. _skillTags = skillTags;
  94. }
  95. SkillDetailList.fromJson(dynamic json) {
  96. _skillId = json['skillId'];
  97. _skillName = json['skillName'];
  98. _skillIcon = json['skillIcon'];
  99. _skillImage = json['skillImage'];
  100. _skillType = json['skillType'];
  101. _unit = json['unit'];
  102. _sort = json['sort'];
  103. _voiceMatchEnable = json['voiceMatchEnable'];
  104. if (json['skillTags'] != null) {
  105. _skillTags = [];
  106. json['skillTags'].forEach((v) {
  107. _skillTags?.add(SkillTags.fromJson(v));
  108. });
  109. }
  110. }
  111. String? _skillId;
  112. String? _skillName;
  113. String? _skillIcon;
  114. String? _skillImage;
  115. int? _skillType;
  116. int? _unit;
  117. int? _sort;
  118. int? _voiceMatchEnable;
  119. List<SkillTags>? _skillTags;
  120. String? get skillId => _skillId;
  121. String? get skillName => _skillName;
  122. String? get skillIcon => _skillIcon;
  123. String? get skillImage => _skillImage;
  124. int? get skillType => _skillType;
  125. int? get unit => _unit;
  126. int? get sort => _sort;
  127. int? get voiceMatchEnable => _voiceMatchEnable;
  128. List<SkillTags>? get skillTags => _skillTags;
  129. Map<String, dynamic> toJson() {
  130. final map = <String, dynamic>{};
  131. map['skillId'] = _skillId;
  132. map['skillName'] = _skillName;
  133. map['skillIcon'] = _skillIcon;
  134. map['skillImage'] = _skillImage;
  135. map['skillType'] = _skillType;
  136. map['unit'] = _unit;
  137. map['sort'] = _sort;
  138. map['voiceMatchEnable'] = _voiceMatchEnable;
  139. if (_skillTags != null) {
  140. map['skillTags'] = _skillTags?.map((v) => v.toJson()).toList();
  141. }
  142. return map;
  143. }
  144. }
  145. /// tagId : "255591029145600"
  146. /// tagName : "语音速配"
  147. class SkillTags {
  148. SkillTags({
  149. String? tagId,
  150. String? tagName,}){
  151. _tagId = tagId;
  152. _tagName = tagName;
  153. }
  154. SkillTags.fromJson(dynamic json) {
  155. _tagId = json['tagId'];
  156. _tagName = json['tagName'];
  157. }
  158. String? _tagId;
  159. String? _tagName;
  160. String? get tagId => _tagId;
  161. String? get tagName => _tagName;
  162. Map<String, dynamic> toJson() {
  163. final map = <String, dynamic>{};
  164. map['tagId'] = _tagId;
  165. map['tagName'] = _tagName;
  166. return map;
  167. }
  168. }