// GENERATED CODE - DO NOT MODIFY BY HAND part of 'wallet_api_models.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** ServicePaySetting _$ServicePaySettingFromJson(Map 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 _$ServicePaySettingToJson(ServicePaySetting instance) => { '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 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 _$ServiceMchRuleToJson(ServiceMchRule instance) => { '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 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 _$ServiceWalletToJson(ServiceWallet instance) => { '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 json) => ServiceComAct( actType: JsonTool.stringToWalletActType(json['actType'] as String?), actItemId: json['actItemId'] as String?, detail: json['detail'] as Map?, ) ..userId = json['userId'] as String? ..username = json['username'] as String? ..userAvatar = json['userAvatar'] as String?; Map _$ServiceComActToJson(ServiceComAct instance) => { 'actType': JsonTool.walletActTypeToString(instance.actType), 'actItemId': instance.actItemId, 'userId': instance.userId, 'username': instance.username, 'userAvatar': instance.userAvatar, 'detail': instance.detail, };