基础库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

42 rivejä
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. }