class SkipModel { String url; String requiredLogin; String requiredTaobaoAuth; String skipIdentifier; String isJump; String skipName; Map data; SkipModel({ this.url, this.requiredLogin, this.requiredTaobaoAuth, this.skipIdentifier, this.isJump, this.data }); SkipModel.fromJson(Map json) { fromJson(json); } void fromJson(Map json) { data = json['data'] ?? {}; url = json['url']; requiredLogin = json['required_login']?.toString(); requiredTaobaoAuth = json['required_taobao_auth']?.toString(); skipIdentifier = json['skip_identifier']; isJump = json['is_jump']?.toString(); skipName=json['skip_name']; } Map toJson() { final Map data = new Map(); data['url'] = this.url; data['required_login'] = this.requiredLogin; data['required_taobao_auth'] = this.requiredTaobaoAuth; data['skip_identifier'] = this.skipIdentifier; data['is_jump'] = this.isJump; data['data'] = this.data; data['skip_name']=this.skipName; return data; } }