Files
biz_xfj_cloud/lib/common/models/api/wallet_api_models.g.dart
T

103 lines
4.2 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'wallet_api_models.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
ServicePaySetting _$ServicePaySettingFromJson(Map<String, dynamic> json) =>
ServicePaySetting(
id: json['id'] as String?,
payAmountEnable:
JsonTool.stringToBoolean(json['payAmountEnable'] as String?),
payAmountMealLimit: (json['payAmountMealLimit'] as num?)?.toInt(),
payAmountMealTimes: (json['payAmountMealTimes'] as num?)?.toDouble(),
afterSaleRefundReasons: json['afterSaleRefundReasons'] as String?,
afterSaleReturnReasons: json['afterSaleReturnReasons'] as String?,
refreshQrCodeEnable:
JsonTool.stringToBoolean(json['refreshQrCodeEnable'] as String?),
refreshQrCodeFre: (json['refreshQrCodeFre'] as num?)?.toInt(),
offLineOrderApplyEnable:
JsonTool.stringToBoolean(json['offLineOrderApplyEnable'] as String?),
);
Map<String, dynamic> _$ServicePaySettingToJson(ServicePaySetting instance) =>
<String, dynamic>{
'id': instance.id,
'payAmountEnable': JsonTool.booleanToString(instance.payAmountEnable),
'payAmountMealLimit': instance.payAmountMealLimit,
'payAmountMealTimes': instance.payAmountMealTimes,
'afterSaleRefundReasons': instance.afterSaleRefundReasons,
'afterSaleReturnReasons': instance.afterSaleReturnReasons,
'refreshQrCodeEnable':
JsonTool.booleanToString(instance.refreshQrCodeEnable),
'refreshQrCodeFre': instance.refreshQrCodeFre,
'offLineOrderApplyEnable':
JsonTool.booleanToString(instance.offLineOrderApplyEnable),
};
ServiceMchRule _$ServiceMchRuleFromJson(Map<String, dynamic> json) =>
ServiceMchRule(
id: json['id'] as String,
sourceMchId: json['sourceMchId'] as String,
targetMchId: json['targetMchId'] as String,
rulePriceConfigId: json['rulePriceConfigId'] as String,
rulePriceType: json['rulePriceType'] as String?,
basePrice: JsonTool.stringToInt(json['basePrice'] as String?),
multiple: JsonTool.stringToInt(json['multiple'] as String?),
);
Map<String, dynamic> _$ServiceMchRuleToJson(ServiceMchRule instance) =>
<String, dynamic>{
'id': instance.id,
'sourceMchId': instance.sourceMchId,
'targetMchId': instance.targetMchId,
'rulePriceConfigId': instance.rulePriceConfigId,
'rulePriceType': instance.rulePriceType,
'basePrice': JsonTool.intToString(instance.basePrice),
'multiple': JsonTool.intToString(instance.multiple),
};
ServiceWallet _$ServiceWalletFromJson(Map<String, dynamic> json) =>
ServiceWallet(
id: json['id'] as String,
walletTypeUniqueCode: json['walletTypeUniqueCode'] as String,
userId: json['userId'] as String,
walletTypeId: json['walletTypeId'] as String,
balance: (json['balance'] as num).toInt(),
cardNumber: json['cardNumber'] as String?,
isFreeze: JsonTool.stringToBoolean(json['isFreeze'] as String?),
);
Map<String, dynamic> _$ServiceWalletToJson(ServiceWallet instance) =>
<String, dynamic>{
'id': instance.id,
'walletTypeUniqueCode': instance.walletTypeUniqueCode,
'userId': instance.userId,
'walletTypeId': instance.walletTypeId,
'balance': instance.balance,
'cardNumber': instance.cardNumber,
'isFreeze': JsonTool.booleanToString(instance.isFreeze),
};
ServiceComAct _$ServiceComActFromJson(Map<String, dynamic> json) =>
ServiceComAct(
actType: JsonTool.stringToWalletActType(json['actType'] as String?),
actItemId: json['actItemId'] as String?,
detail: json['detail'] as Map<String, dynamic>?,
)
..userId = json['userId'] as String?
..username = json['username'] as String?
..userAvatar = json['userAvatar'] as String?;
Map<String, dynamic> _$ServiceComActToJson(ServiceComAct instance) =>
<String, dynamic>{
'actType': JsonTool.walletActTypeToString(instance.actType),
'actItemId': instance.actItemId,
'userId': instance.userId,
'username': instance.username,
'userAvatar': instance.userAvatar,
'detail': instance.detail,
};