基础库
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

42 rindas
1.0 KiB

  1. class SkipModel {
  2. String url;
  3. String requiredLogin;
  4. String requiredTaobaoAuth;
  5. String skipIdentifier;
  6. String isJump;
  7. Map<String, dynamic> data;
  8. SkipModel({
  9. this.url,
  10. this.requiredLogin,
  11. this.requiredTaobaoAuth,
  12. this.skipIdentifier,
  13. this.isJump,
  14. this.data
  15. });
  16. SkipModel.fromJson(Map<String, dynamic> json) {
  17. fromJson(json);
  18. }
  19. void fromJson(Map<String, dynamic> json) {
  20. data = json['data'] ?? {};
  21. url = json['url'];
  22. requiredLogin = json['required_login']?.toString();
  23. requiredTaobaoAuth = json['required_taobao_auth']?.toString();
  24. skipIdentifier = json['skip_identifier'];
  25. isJump = json['is_jump']?.toString();
  26. }
  27. Map<String, dynamic> toJson() {
  28. final Map<String, dynamic> data = new Map<String, dynamic>();
  29. data['url'] = this.url;
  30. data['required_login'] = this.requiredLogin;
  31. data['required_taobao_auth'] = this.requiredTaobaoAuth;
  32. data['skip_identifier'] = this.skipIdentifier;
  33. data['is_jump'] = this.isJump;
  34. data['data'] = this.data;
  35. return data;
  36. }
  37. }