import 'package:huixiang/retrofit/data/banner.dart'; class BrandData { BrandData(); List bannerList; String company; String companyDesc; String originAvatar; String originDesc; String originator; dynamic contents; dynamic ideals; factory BrandData.fromJson(Map json) => BrandData() ..bannerList = (json['bannerList'] as List)?.map((e) => e == null ? null : BannerData.fromJson(e as Map))?.toList() ..company = json['company'] as String ..companyDesc = json['companyDesc'] as String ..originAvatar = json['originAvatar'] as String ..originDesc = json['originDesc'] as String ..originator = json['originator'] as String ..contents = json['contents'] ..ideals = json['ideals']; Map toJson() => { 'bannerList': this.bannerList.map((e) => e.toJson()).toList(), 'company': this.company, 'companyDesc': this.companyDesc, 'originAvatar': this.originAvatar, 'originDesc': this.originDesc, 'originator': this.originator, 'contents': this.contents, 'ideals': this.ideals, }; }