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.
131 lines
4.5 KiB
131 lines
4.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/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; |
|
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; |
|
|
|
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 |
|
..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; |
|
|
|
Map<String, dynamic> toJson() => <String, dynamic>{ |
|
'address': this.address, |
|
'bannerList': this.bannerList.map((e) => e.toJson()).toList(), |
|
'city': this.city, |
|
'couponVOList': this.couponVOList, |
|
'createTime': this.createTime, |
|
'createUser': this.createUser, |
|
'deliveryInfo': this.deliveryInfo.toJson(), |
|
'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, |
|
'openEndTime': this.openEndTime, |
|
'openStartTime': this.openStartTime, |
|
'perCapitaConsumption': this.perCapitaConsumption, |
|
'posType': this.posType.toJson(), |
|
'promotionList': this.promotionList.map((e) => e.toJson()).toList(), |
|
'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.toJson(), |
|
'useErp': this.useErp, |
|
}; |
|
}
|
|
|