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.
 
 
 
 
 
 

150 lines
5.5 KiB

import 'package:huixiang/retrofit/data/banner.dart';
import 'package:huixiang/retrofit/data/coupon_vo.dart';
import 'package:huixiang/retrofit/data/delivery_info.dart';
import 'package:huixiang/retrofit/data/member_source.dart';
import 'package:huixiang/retrofit/data/page.dart';
import 'package:huixiang/retrofit/data/promotion.dart';
import 'package:huixiang/retrofit/data/store_type.dart';
import 'package:huixiang/retrofit/data/mini.dart';
class StoreInfo {
String? address;
List<BannerData?>? bannerList;
String? city;
List<CouponVo?>? couponVOList;
String? createTime;
String? createUser;
DeliveryInfo? deliveryInfo;
String? district;
String? headMobile;
String? headName;
String? id;
num? isAutoSendRefundAddress;
String? latitude;
String? logo;
bool? isVip;
String? longitude;
String? mobile;
String? openEndTime;
String? openStartTime;
String? perCapitaConsumption;
StoreType? posType;
List<Promotion?>? promotionList;
String? province;
String? refundAddress;
String? refundContact;
String? refundTel;
String? remark;
String? shipAddress;
String? storeName;
String? tenantCode;
String? updateTime;
String? updateUser;
String? businessService;
Mini? mini;
bool? useErp;
String? expireTime;
String? vipFee;
MemberSource? memberSource;
PageInfo? informationVOPageVO;
StoreInfo();
factory StoreInfo.fromJson(Map<String, dynamic> json) => StoreInfo()
..address = json['address'] as String
..bannerList = (json['bannerList'] as List)
?.map((e) =>
e == null ? null : BannerData.fromJson(e as Map<String, dynamic>))
?.toList()
..city = json['city'] as String
..couponVOList = (json['couponVOList'] as List)
?.map((e) =>
e == null ? null : CouponVo.fromJson(e as Map<String, dynamic>))
?.toList()
..createTime = json['createTime'] as String
..createUser = json['createUser'] as String
..deliveryInfo = json['deliveryInfo'] == null
? null
: DeliveryInfo.fromJson(json['deliveryInfo'] as Map<String, dynamic>)
..district = json['district'] as String
..headMobile = json['headMobile'] as String
..headName = json['headName'] as String
..id = json['id'] as String
..isVip = json['isVip']
..isAutoSendRefundAddress = json['isAutoSendRefundAddress'] as num
..latitude = json['latitude'] as String
..logo = json['logo'] as String
..longitude = json['longitude'] as String
..mobile = json['mobile'] as String
..openEndTime = json['openEndTime'] as String
..openStartTime = json['openStartTime'] as String
..perCapitaConsumption = json['perCapitaConsumption'] as String
..posType = json['posType'] == null
? null
: StoreType.fromJson(json['posType'] as Map<String, dynamic>)
..promotionList = (json['promotionList'] as List)
?.map((e) =>
e == null ? null : Promotion.fromJson(e as Map<String, dynamic>))
?.toList()
..province = json['province'] as String
..refundAddress = json['refundAddress'] as String
..refundContact = json['refundContact'] as String
..refundTel = json['refundTel'] as String
..remark = json['remark'] as String
..shipAddress = json['shipAddress'] as String
..storeName = json['storeName'] as String
..tenantCode = json['tenantCode'] as String
..updateTime = json['updateTime'] as String
..updateUser = json['updateUser'] as String
..businessService = json['businessService'] as String
..mini = json['mini'] == null ? null : Mini.fromJson(json['mini'])
..useErp = json['useErp'] as bool
..expireTime = json['expireTime'] as String
..vipFee = json['vipFee'] as String
..memberSource = json['memberSource'] != null ? MemberSource.fromJson(json['memberSource']) : null
..informationVOPageVO = json['informationVOPageVO'] != null ? PageInfo.fromJson(json['informationVOPageVO'], (value){
return value;
}) : null;
Map<String, dynamic> toJson() => <String, dynamic>{
'address': this.address,
'bannerList': this.bannerList == null ? null : this.bannerList!.map((e) => e?.toJson()).toList(),
'city': this.city,
'couponVOList': this.couponVOList,
'createTime': this.createTime,
'createUser': this.createUser,
'deliveryInfo': this.deliveryInfo != null ? this.deliveryInfo!.toJson() : null,
'district': this.district,
'headMobile': this.headMobile,
'headName': this.headName,
'id': this.id,
'isAutoSendRefundAddress': this.isAutoSendRefundAddress,
'latitude': this.latitude,
'logo': this.logo,
'longitude': this.longitude,
'mobile': this.mobile,
'isVip': this.isVip,
'openEndTime': this.openEndTime,
'openStartTime': this.openStartTime,
'perCapitaConsumption': this.perCapitaConsumption,
'posType': this.posType != null ? this.posType!.toJson() : null,
'promotionList': this.promotionList != null ? this.promotionList!.map((e) => e?.toJson()).toList() : null,
'province': this.province,
'refundAddress': this.refundAddress,
'refundContact': this.refundContact,
'refundTel': this.refundTel,
'remark': this.remark,
'shipAddress': this.shipAddress,
'storeName': this.storeName,
'tenantCode': this.tenantCode,
'updateTime': this.updateTime,
'updateUser': this.updateUser,
'businessService': this.businessService,
'mini': this.mini != null ? this.mini!.toJson() : "",
'useErp': this.useErp,
'expireTime': this.expireTime,
'vipFee': this.vipFee,
'memberSource': this.memberSource != null ? this.memberSource!.toJson() : null,
'informationVOPageVO': this.informationVOPageVO,
};
}