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.

116 lines
3.5 KiB

4 years ago
import 'package:huixiang/retrofit/data/coupon_vo.dart';
4 years ago
import 'package:huixiang/retrofit/data/store_type.dart';
4 years ago
class Store {
Store();
String id;
String createTime;
String createUser;
String updateTime;
String updateUser;
String tenantCode;
bool useErp;
String openStartTime;
String openEndTime;
4 years ago
String perCapitaConsumption;
4 years ago
String storeName;
4 years ago
double distance;
4 years ago
String logo;
String shipAddress;
dynamic remark;
String mobile;
String longitude;
String latitude;
dynamic refundAddress;
dynamic refundTel;
dynamic refundContact;
int isAutoSendRefundAddress;
String province;
String city;
String district;
String address;
String headName;
String headMobile;
CouponVo couponVO;
4 years ago
dynamic deliveryInfo;
4 years ago
String businessType;
4 years ago
StoreType posType;
4 years ago
factory Store.fromJson(Map<String, dynamic> json) => Store()
..id = json['id'] as String
..createTime = json['createTime'] as String
..createUser = json['createUser'] as String
..updateTime = json['updateTime'] as String
..updateUser = json['updateUser'] as String
..tenantCode = json['tenantCode'] as String
..useErp = json['useErp'] as bool
..openStartTime = json['openStartTime'] as String
..openEndTime = json['openEndTime'] as String
..perCapitaConsumption = json['perCapitaConsumption'] as String
..storeName = json['storeName'] as String
..distance = (json['distance'] as num)?.toDouble()
..logo = json['logo'] as String
..shipAddress = json['shipAddress'] as String
..remark = json['remark']
..mobile = json['mobile'] as String
..longitude = json['longitude'] as String
..latitude = json['latitude'] as String
..refundAddress = json['refundAddress']
..refundTel = json['refundTel']
..refundContact = json['refundContact']
..isAutoSendRefundAddress = json['isAutoSendRefundAddress'] as int
..province = json['province'] as String
..city = json['city'] as String
..district = json['district'] as String
..address = json['address'] as String
..headName = json['headName'] as String
..headMobile = json['headMobile'] as String
..deliveryInfo = json['deliveryInfo']
..businessType = json['businessType'] as String
..couponVO = json['couponVO'] == null ? null : CouponVo.fromJson(json['couponVO'])
4 years ago
..posType = json['posType'] == null
? null
: StoreType.fromJson(json['posType'] as Map<String, dynamic>);
4 years ago
Map<String, dynamic> toJson() => <String, dynamic>{
'id': this.id,
'createTime': this.createTime,
'createUser': this.createUser,
'updateTime': this.updateTime,
'updateUser': this.updateUser,
'tenantCode': this.tenantCode,
'useErp': this.useErp,
'openStartTime': this.openStartTime,
'openEndTime': this.openEndTime,
'perCapitaConsumption': this.perCapitaConsumption,
'storeName': this.storeName,
'distance': this.distance,
'logo': this.logo,
'shipAddress': this.shipAddress,
'remark': this.remark,
'mobile': this.mobile,
'longitude': this.longitude,
'latitude': this.latitude,
'refundAddress': this.refundAddress,
'refundTel': this.refundTel,
'refundContact': this.refundContact,
'isAutoSendRefundAddress': this.isAutoSendRefundAddress,
'province': this.province,
'city': this.city,
'district': this.district,
'address': this.address,
'headName': this.headName,
'headMobile': this.headMobile,
'deliveryInfo': this.deliveryInfo,
'businessType': this.businessType,
'couponVO': this.couponVO.toJson(),
4 years ago
'posType': this.posType,
};
4 years ago
}