import 'package:bbyyy/generated/json/base/json_convert_content.dart'; import 'package:bbyyy/beans/flow_bean_entity.dart'; FlowBeanEntity $FlowBeanEntityFromJson(Map json) { FlowBeanEntity flowBeanEntity = FlowBeanEntity(); var data = jsonConvert.convert(json['data']); if (data != null) { flowBeanEntity.data = data; } var error = jsonConvert.convert(json['error']); if (error != null) { flowBeanEntity.error = error; } return flowBeanEntity; } Map $FlowBeanEntityToJson(FlowBeanEntity entity) { final Map data = {}; data['data'] = entity.data.toJson(); data['error'] = entity.error; return data; } FlowBeanData $FlowBeanDataFromJson(Map json) { FlowBeanData flowBeanData = FlowBeanData(); var total = jsonConvert.convert(json['total']); if (total != null) { flowBeanData.total = total; } var data = jsonConvert.convert(json['data']); if (data != null) { flowBeanData.data = data; } return flowBeanData; } Map $FlowBeanDataToJson(FlowBeanData entity) { final Map data = {}; data['total'] = entity.total; data['data'] = entity.data.toJson(); return data; } FlowBeanDataData $FlowBeanDataDataFromJson(Map json) { FlowBeanDataData flowBeanDataData = FlowBeanDataData(); var totalAmount = jsonConvert.convert(json['total_amount']); if (totalAmount != null) { flowBeanDataData.totalAmount = totalAmount; } var records = jsonConvert.convertListNotNull(json['records']); if (records != null) { flowBeanDataData.records = records; } return flowBeanDataData; } Map $FlowBeanDataDataToJson(FlowBeanDataData entity) { final Map data = {}; data['total_amount'] = entity.totalAmount; data['records'] = entity.records.map((v) => v.toJson()).toList(); return data; } FlowBeanDataDataRecords $FlowBeanDataDataRecordsFromJson(Map json) { FlowBeanDataDataRecords flowBeanDataDataRecords = FlowBeanDataDataRecords(); var id = jsonConvert.convert(json['id']); if (id != null) { flowBeanDataDataRecords.id = id; } var type = jsonConvert.convert(json['type']); if (type != null) { flowBeanDataDataRecords.type = type; } var traderPic = jsonConvert.convert(json['trader_pic']); if (traderPic != null) { flowBeanDataDataRecords.traderPic = traderPic; } var payTime = jsonConvert.convert(json['pay_time']); if (payTime != null) { flowBeanDataDataRecords.payTime = payTime; } var remark = jsonConvert.convert(json['remark']); if (remark != null) { flowBeanDataDataRecords.remark = remark; } var paidAmount = jsonConvert.convert(json['paid_amount']); if (paidAmount != null) { flowBeanDataDataRecords.paidAmount = paidAmount; } var userName = jsonConvert.convert(json['user_name']); if (userName != null) { flowBeanDataDataRecords.userName = userName; } var userPic = jsonConvert.convert(json['user_pic']); if (userPic != null) { flowBeanDataDataRecords.userPic = userPic; } var traderUid = jsonConvert.convert(json['trader_uid']); if (traderUid != null) { flowBeanDataDataRecords.traderUid = traderUid; } var peerFlowId = jsonConvert.convert(json['peer_flow_id']); if (peerFlowId != null) { flowBeanDataDataRecords.peerFlowId = peerFlowId; } var traderName = jsonConvert.convert(json['trader_name']); if (traderName != null) { flowBeanDataDataRecords.traderName = traderName; } var payWay = jsonConvert.convert(json['pay_way']); if (payWay != null) { flowBeanDataDataRecords.payWay = payWay; } var orderUid = jsonConvert.convert(json['order_uid']); if (orderUid != null) { flowBeanDataDataRecords.orderUid = orderUid; } var userUid = jsonConvert.convert(json['user_uid']); if (userUid != null) { flowBeanDataDataRecords.userUid = userUid; } var shopUid = jsonConvert.convert(json['shop_uid']); if (shopUid != null) { flowBeanDataDataRecords.shopUid = shopUid; } var userBalance = jsonConvert.convert(json['user_balance']); if (userBalance != null) { flowBeanDataDataRecords.userBalance = userBalance; } return flowBeanDataDataRecords; } Map $FlowBeanDataDataRecordsToJson(FlowBeanDataDataRecords entity) { final Map data = {}; data['id'] = entity.id; data['type'] = entity.type; data['trader_pic'] = entity.traderPic; data['pay_time'] = entity.payTime; data['remark'] = entity.remark; data['paid_amount'] = entity.paidAmount; data['user_name'] = entity.userName; data['user_pic'] = entity.userPic; data['trader_uid'] = entity.traderUid; data['peer_flow_id'] = entity.peerFlowId; data['trader_name'] = entity.traderName; data['pay_way'] = entity.payWay; data['order_uid'] = entity.orderUid; data['user_uid'] = entity.userUid; data['shop_uid'] = entity.shopUid; data['user_balance'] = entity.userBalance; return data; }