import 'package:bbyyy/generated/json/base/json_convert_content.dart'; import 'package:bbyyy/beans/msg_bean_data_entity.dart'; MsgBeanDataEntity $MsgBeanDataEntityFromJson(Map json) { MsgBeanDataEntity msgBeanDataEntity = MsgBeanDataEntity(); var senderUid = jsonConvert.convert(json['sender_uid']); if (senderUid != null) { msgBeanDataEntity.senderUid = senderUid; } var senderPic = jsonConvert.convert(json['sender_pic']); if (senderPic != null) { msgBeanDataEntity.senderPic = senderPic; } var senderName = jsonConvert.convert(json['sender_name']); if (senderName != null) { msgBeanDataEntity.senderName = senderName; } var type = jsonConvert.convert(json['type']); if (type != null) { msgBeanDataEntity.type = type; } var key = jsonConvert.convert(json['key']); if (key != null) { msgBeanDataEntity.key = key; } var sentAt = jsonConvert.convert(json['sent_at']); if (sentAt != null) { msgBeanDataEntity.sentAt = sentAt; } var content = jsonConvert.convert(json['content']); if (content != null) { msgBeanDataEntity.content = content; } var uuid = jsonConvert.convert(json['uuid']); if (uuid != null) { msgBeanDataEntity.uuid = uuid; } return msgBeanDataEntity; } Map $MsgBeanDataEntityToJson(MsgBeanDataEntity entity) { final Map data = {}; data['sender_uid'] = entity.senderUid; data['sender_pic'] = entity.senderPic; data['sender_name'] = entity.senderName; data['type'] = entity.type; data['key'] = entity.key; data['sent_at'] = entity.sentAt; data['content'] = entity.content; data['uuid'] = entity.uuid; return data; }