基础库
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

skip_model.dart 1.1 KiB

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