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

skip_model.dart 856 B

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