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 lines
1.1 KiB

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