fmk
4 years ago
26 changed files with 476 additions and 721 deletions
@ -1,44 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'activity.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
Activity _$ActivityFromJson(Map<String, dynamic> json) { |
||||
return Activity() |
||||
..id = json['id'] as String |
||||
..createTime = json['createTime'] as String |
||||
..createUser = json['createUser'] |
||||
..updateTime = json['updateTime'] as String |
||||
..updateUser = json['updateUser'] |
||||
..storeId = json['storeId'] as String |
||||
..mainTitle = json['mainTitle'] as String |
||||
..viceTitle = json['viceTitle'] as String |
||||
..content = json['content'] as String |
||||
..coverImg = json['coverImg'] as String |
||||
..startTime = json['startTime'] as String |
||||
..endTime = json['endTime'] as String |
||||
..state = json['state'] as int |
||||
..isDelete = json['isDelete'] as int |
||||
..storeName = json['storeName'] as String; |
||||
} |
||||
|
||||
Map<String, dynamic> _$ActivityToJson(Activity instance) => <String, dynamic>{ |
||||
'id': instance.id, |
||||
'createTime': instance.createTime, |
||||
'createUser': instance.createUser, |
||||
'updateTime': instance.updateTime, |
||||
'updateUser': instance.updateUser, |
||||
'storeId': instance.storeId, |
||||
'mainTitle': instance.mainTitle, |
||||
'viceTitle': instance.viceTitle, |
||||
'content': instance.content, |
||||
'coverImg': instance.coverImg, |
||||
'startTime': instance.startTime, |
||||
'endTime': instance.endTime, |
||||
'state': instance.state, |
||||
'isDelete': instance.isDelete, |
||||
'storeName': instance.storeName, |
||||
}; |
@ -1,40 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'address.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
Address _$AddressFromJson(Map<String, dynamic> json) { |
||||
return Address() |
||||
..address = json['address'] as String |
||||
..area = json['area'] as String |
||||
..city = json['city'] as String |
||||
..cityInfo = json['cityInfo'] as String |
||||
..id = json['id'] as String |
||||
..isDefault = json['isDefault'] as bool |
||||
..latitude = json['latitude'] as String |
||||
..longitude = json['longitude'] as String |
||||
..mid = json['mid'] as String |
||||
..phone = json['phone'] as String |
||||
..province = json['province'] as String |
||||
..tag = json['tag'] as String |
||||
..username = json['username'] as String; |
||||
} |
||||
|
||||
Map<String, dynamic> _$AddressToJson(Address instance) => <String, dynamic>{ |
||||
'address': instance.address, |
||||
'area': instance.area, |
||||
'city': instance.city, |
||||
'cityInfo': instance.cityInfo, |
||||
'id': instance.id, |
||||
'isDefault': instance.isDefault, |
||||
'latitude': instance.latitude, |
||||
'longitude': instance.longitude, |
||||
'mid': instance.mid, |
||||
'phone': instance.phone, |
||||
'province': instance.province, |
||||
'tag': instance.tag, |
||||
'username': instance.username, |
||||
}; |
@ -1,38 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'banner.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
BannerData _$BannerDataFromJson(Map<String, dynamic> json) { |
||||
return BannerData( |
||||
content: json['content'] as String, |
||||
createTime: json['createTime'] as String, |
||||
createUser: json['createUser'] as String, |
||||
id: json['id'] as String, |
||||
imgUrl: json['imgUrl'] as String, |
||||
isDelete: json['isDelete'] as bool, |
||||
storeId: json['storeId'] as String, |
||||
tenantCode: json['tenantCode'] as String, |
||||
type: json['type'] as String, |
||||
updateTime: json['updateTime'] as String, |
||||
updateUser: json['updateUser'] as String, |
||||
); |
||||
} |
||||
|
||||
Map<String, dynamic> _$BannerDataToJson(BannerData instance) => |
||||
<String, dynamic>{ |
||||
'content': instance.content, |
||||
'createTime': instance.createTime, |
||||
'createUser': instance.createUser, |
||||
'id': instance.id, |
||||
'imgUrl': instance.imgUrl, |
||||
'isDelete': instance.isDelete, |
||||
'storeId': instance.storeId, |
||||
'tenantCode': instance.tenantCode, |
||||
'type': instance.type, |
||||
'updateTime': instance.updateTime, |
||||
'updateUser': instance.updateUser, |
||||
}; |
@ -1,30 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'base_data.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
BaseData _$BaseDataFromJson(Map<String, dynamic> json) { |
||||
return BaseData() |
||||
..code = json['code'] as int |
||||
..data = json['data'] |
||||
..extra = json['extra'] |
||||
..isError = json['isError'] as bool |
||||
..isSuccess = json['isSuccess'] as bool |
||||
..msg = json['msg'] as String |
||||
..path = json['path'] as String |
||||
..timestamp = json['timestamp'] as String; |
||||
} |
||||
|
||||
Map<String, dynamic> _$BaseDataToJson(BaseData instance) => <String, dynamic>{ |
||||
'code': instance.code, |
||||
'data': instance.data, |
||||
'extra': instance.extra, |
||||
'isError': instance.isError, |
||||
'isSuccess': instance.isSuccess, |
||||
'msg': instance.msg, |
||||
'path': instance.path, |
||||
'timestamp': instance.timestamp, |
||||
}; |
@ -1,33 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'brand_data.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
BrandData _$BrandDataFromJson(Map<String, dynamic> json) { |
||||
return 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> _$BrandDataToJson(BrandData instance) => <String, dynamic>{ |
||||
'bannerList': instance.bannerList, |
||||
'company': instance.company, |
||||
'companyDesc': instance.companyDesc, |
||||
'originAvatar': instance.originAvatar, |
||||
'originDesc': instance.originDesc, |
||||
'originator': instance.originator, |
||||
'contents': instance.contents, |
||||
'ideals': instance.ideals, |
||||
}; |
@ -1,64 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'coupon.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
Coupon _$CouponFromJson(Map<String, dynamic> json) { |
||||
return Coupon() |
||||
..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 |
||||
..bizType = json['bizType'] as int |
||||
..fullAmount = json['fullAmount'] as String |
||||
..discountAmount = json['discountAmount'] as String |
||||
..discountPercent = json['discountPercent'] as int |
||||
..bizId = json['bizId'] as String |
||||
..publishStartTime = json['publishStartTime'] as String |
||||
..publishEndTime = json['publishEndTime'] as String |
||||
..useStartTime = json['useStartTime'] as String |
||||
..useEndTime = json['useEndTime'] as String |
||||
..promotionId = json['promotionId'] as String |
||||
..centreDisplay = json['centreDisplay'] as bool |
||||
..tenantCode = json['tenantCode'] as String |
||||
..isDelete = json['isDelete'] as int |
||||
..couponName = json['couponName'] as String |
||||
..couponImg = json['couponImg'] as String |
||||
..couponDescription = json['couponDescription'] as String |
||||
..memberCouponId = json['memberCouponId'] as String |
||||
..receiveTime = json['receiveTime'] as String |
||||
..useTime = json['useTime'] |
||||
..status = json['status'] as int; |
||||
} |
||||
|
||||
Map<String, dynamic> _$CouponToJson(Coupon instance) => <String, dynamic>{ |
||||
'id': instance.id, |
||||
'createTime': instance.createTime, |
||||
'createUser': instance.createUser, |
||||
'updateTime': instance.updateTime, |
||||
'updateUser': instance.updateUser, |
||||
'bizType': instance.bizType, |
||||
'fullAmount': instance.fullAmount, |
||||
'discountAmount': instance.discountAmount, |
||||
'discountPercent': instance.discountPercent, |
||||
'bizId': instance.bizId, |
||||
'publishStartTime': instance.publishStartTime, |
||||
'publishEndTime': instance.publishEndTime, |
||||
'useStartTime': instance.useStartTime, |
||||
'useEndTime': instance.useEndTime, |
||||
'promotionId': instance.promotionId, |
||||
'centreDisplay': instance.centreDisplay, |
||||
'tenantCode': instance.tenantCode, |
||||
'isDelete': instance.isDelete, |
||||
'couponName': instance.couponName, |
||||
'couponImg': instance.couponImg, |
||||
'couponDescription': instance.couponDescription, |
||||
'memberCouponId': instance.memberCouponId, |
||||
'receiveTime': instance.receiveTime, |
||||
'useTime': instance.useTime, |
||||
'status': instance.status, |
||||
}; |
@ -1,67 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'coupon_vo.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
CouponVo _$CouponVoFromJson(Map<String, dynamic> json) { |
||||
return CouponVo( |
||||
bizId: json['bizId'] as String, |
||||
bizType: json['bizType'] as num, |
||||
centreDisplay: json['centreDisplay'] as bool, |
||||
couponDescription: json['couponDescription'] as String, |
||||
couponImg: json['couponImg'] as String, |
||||
couponName: json['couponName'] as String, |
||||
createTime: json['createTime'] as String, |
||||
createUser: json['createUser'] as String, |
||||
discountAmount: json['discountAmount'] as String, |
||||
discountPercent: json['discountPercent'] as num, |
||||
fullAmount: json['fullAmount'] as String, |
||||
id: json['id'] as String, |
||||
isDelete: json['isDelete'] as num, |
||||
memberCouponId: json['memberCouponId'] as num, |
||||
promotionId: json['promotionId'] as String, |
||||
publishEndTime: json['publishEndTime'] as String, |
||||
publishStartTime: json['publishStartTime'] as String, |
||||
receiveTime: json['receiveTime'] as String, |
||||
received: json['received'] as bool, |
||||
status: json['status'] as num, |
||||
tenantCode: json['tenantCode'] as String, |
||||
updateTime: json['updateTime'] as String, |
||||
updateUser: json['updateUser'] as String, |
||||
useEndTime: json['useEndTime'] as String, |
||||
useStartTime: json['useStartTime'] as String, |
||||
useTime: json['useTime'] as String, |
||||
); |
||||
} |
||||
|
||||
Map<String, dynamic> _$CouponVoToJson(CouponVo instance) => <String, dynamic>{ |
||||
'bizId': instance.bizId, |
||||
'bizType': instance.bizType, |
||||
'centreDisplay': instance.centreDisplay, |
||||
'couponDescription': instance.couponDescription, |
||||
'couponImg': instance.couponImg, |
||||
'couponName': instance.couponName, |
||||
'createTime': instance.createTime, |
||||
'createUser': instance.createUser, |
||||
'discountAmount': instance.discountAmount, |
||||
'discountPercent': instance.discountPercent, |
||||
'fullAmount': instance.fullAmount, |
||||
'id': instance.id, |
||||
'isDelete': instance.isDelete, |
||||
'memberCouponId': instance.memberCouponId, |
||||
'promotionId': instance.promotionId, |
||||
'publishEndTime': instance.publishEndTime, |
||||
'publishStartTime': instance.publishStartTime, |
||||
'receiveTime': instance.receiveTime, |
||||
'received': instance.received, |
||||
'status': instance.status, |
||||
'tenantCode': instance.tenantCode, |
||||
'updateTime': instance.updateTime, |
||||
'updateUser': instance.updateUser, |
||||
'useEndTime': instance.useEndTime, |
||||
'useStartTime': instance.useStartTime, |
||||
'useTime': instance.useTime, |
||||
}; |
@ -1,16 +1,16 @@
|
||||
import 'package:json_annotation/json_annotation.dart'; |
||||
|
||||
/// desc : "其他" |
||||
/// code : "OTHER" |
||||
|
||||
part 'data_type.g.dart'; |
||||
|
||||
@JsonSerializable() |
||||
class DataType { |
||||
DataType(); |
||||
|
||||
String desc; |
||||
String code; |
||||
factory DataType.fromJson(Map<String, dynamic> json) => |
||||
_$DataTypeFromJson(json); |
||||
Map<String, dynamic> toJson() => _$DataTypeToJson(this); |
||||
} |
||||
|
||||
factory DataType.fromJson(Map<String, dynamic> json) => DataType() |
||||
..desc = json['desc'] as String |
||||
..code = json['code'] as String; |
||||
|
||||
Map<String, dynamic> toJson() => <String, dynamic>{ |
||||
'desc': this.desc, |
||||
'code': this.code, |
||||
}; |
||||
} |
||||
|
@ -1,18 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'data_type.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
DataType _$DataTypeFromJson(Map<String, dynamic> json) { |
||||
return DataType() |
||||
..desc = json['desc'] as String |
||||
..code = json['code'] as String; |
||||
} |
||||
|
||||
Map<String, dynamic> _$DataTypeToJson(DataType instance) => <String, dynamic>{ |
||||
'desc': instance.desc, |
||||
'code': instance.code, |
||||
}; |
@ -1,30 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'delivery_info.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
DeliveryInfo _$DeliveryInfoFromJson(Map<String, dynamic> json) { |
||||
return DeliveryInfo( |
||||
dadaRegStatus: json['dadaRegStatus'] as bool, |
||||
dadaSourceId: json['dadaSourceId'] as String, |
||||
dadaStatus: json['dadaStatus'] as bool, |
||||
dianwodaRegStatus: json['dianwodaRegStatus'] as bool, |
||||
dianwodaStatus: json['dianwodaStatus'] as bool, |
||||
meituanRegStatus: json['meituanRegStatus'] as bool, |
||||
meituanStatus: json['meituanStatus'] as bool, |
||||
); |
||||
} |
||||
|
||||
Map<String, dynamic> _$DeliveryInfoToJson(DeliveryInfo instance) => |
||||
<String, dynamic>{ |
||||
'dadaRegStatus': instance.dadaRegStatus, |
||||
'dadaSourceId': instance.dadaSourceId, |
||||
'dadaStatus': instance.dadaStatus, |
||||
'dianwodaRegStatus': instance.dianwodaRegStatus, |
||||
'dianwodaStatus': instance.dianwodaStatus, |
||||
'meituanRegStatus': instance.meituanRegStatus, |
||||
'meituanStatus': instance.meituanStatus, |
||||
}; |
@ -1,45 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'exchange_order.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
ExchangeOrder _$ExchangeOrderFromJson(Map<String, dynamic> json) { |
||||
return ExchangeOrder() |
||||
..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 |
||||
..storeId = json['storeId'] as String |
||||
..mid = json['mid'] as String |
||||
..orderCode = json['orderCode'] as String |
||||
..amount = json['amount'] as String |
||||
..state = json['state'] as int |
||||
..useTyped = json['useTyped'] as int |
||||
..isDelete = json['isDelete'] as int |
||||
..creditOrderDetailList = (json['creditOrderDetailList'] as List) |
||||
?.map((e) => e == null |
||||
? null |
||||
: ExchangeOrderGoods.fromJson(e as Map<String, dynamic>)) |
||||
?.toList(); |
||||
} |
||||
|
||||
Map<String, dynamic> _$ExchangeOrderToJson(ExchangeOrder instance) => |
||||
<String, dynamic>{ |
||||
'id': instance.id, |
||||
'createTime': instance.createTime, |
||||
'createUser': instance.createUser, |
||||
'updateTime': instance.updateTime, |
||||
'updateUser': instance.updateUser, |
||||
'storeId': instance.storeId, |
||||
'mid': instance.mid, |
||||
'orderCode': instance.orderCode, |
||||
'amount': instance.amount, |
||||
'state': instance.state, |
||||
'useTyped': instance.useTyped, |
||||
'isDelete': instance.isDelete, |
||||
'creditOrderDetailList': instance.creditOrderDetailList, |
||||
}; |
@ -1,53 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'exchange_order_goods.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
ExchangeOrderGoods _$ExchangeOrderGoodsFromJson(Map<String, dynamic> json) { |
||||
return ExchangeOrderGoods() |
||||
..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 |
||||
..orderId = json['orderId'] as String |
||||
..goodsId = json['goodsId'] as String |
||||
..categoryId = json['categoryId'] as String |
||||
..name = json['name'] as String |
||||
..description = json['description'] as String |
||||
..worth = json['worth'] as String |
||||
..price = json['price'] as String |
||||
..couponId = json['couponId'] as String |
||||
..canPick = json['canPick'] as bool |
||||
..canDelivery = json['canDelivery'] as bool |
||||
..goodsMainImg = json['goodsMainImg'] as String |
||||
..goodsViceImg = json['goodsViceImg'] as String |
||||
..goodsNumber = json['goodsNumber'] as int |
||||
..isDelete = json['isDelete'] as int; |
||||
} |
||||
|
||||
Map<String, dynamic> _$ExchangeOrderGoodsToJson(ExchangeOrderGoods instance) => |
||||
<String, dynamic>{ |
||||
'id': instance.id, |
||||
'createTime': instance.createTime, |
||||
'createUser': instance.createUser, |
||||
'updateTime': instance.updateTime, |
||||
'updateUser': instance.updateUser, |
||||
'orderId': instance.orderId, |
||||
'goodsId': instance.goodsId, |
||||
'categoryId': instance.categoryId, |
||||
'name': instance.name, |
||||
'description': instance.description, |
||||
'worth': instance.worth, |
||||
'price': instance.price, |
||||
'couponId': instance.couponId, |
||||
'canPick': instance.canPick, |
||||
'canDelivery': instance.canDelivery, |
||||
'goodsMainImg': instance.goodsMainImg, |
||||
'goodsViceImg': instance.goodsViceImg, |
||||
'goodsNumber': instance.goodsNumber, |
||||
'isDelete': instance.isDelete, |
||||
}; |
Loading…
Reference in new issue