| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- import 'package:bbyyy/generated/json/base/json_convert_content.dart';
- import 'package:bbyyy/beans/msg_bean_data_entity.dart';
- MsgBeanDataEntity $MsgBeanDataEntityFromJson(Map<String, dynamic> json) {
- MsgBeanDataEntity msgBeanDataEntity = MsgBeanDataEntity();
- var senderUid = jsonConvert.convert<int>(json['sender_uid']);
- if (senderUid != null) {
- msgBeanDataEntity.senderUid = senderUid;
- }
- var senderPic = jsonConvert.convert<String>(json['sender_pic']);
- if (senderPic != null) {
- msgBeanDataEntity.senderPic = senderPic;
- }
- var senderName = jsonConvert.convert<String>(json['sender_name']);
- if (senderName != null) {
- msgBeanDataEntity.senderName = senderName;
- }
- var type = jsonConvert.convert<String>(json['type']);
- if (type != null) {
- msgBeanDataEntity.type = type;
- }
- var key = jsonConvert.convert<String>(json['key']);
- if (key != null) {
- msgBeanDataEntity.key = key;
- }
- var sentAt = jsonConvert.convert<String>(json['sent_at']);
- if (sentAt != null) {
- msgBeanDataEntity.sentAt = sentAt;
- }
- var content = jsonConvert.convert<String>(json['content']);
- if (content != null) {
- msgBeanDataEntity.content = content;
- }
- var uuid = jsonConvert.convert<String>(json['uuid']);
- if (uuid != null) {
- msgBeanDataEntity.uuid = uuid;
- }
- return msgBeanDataEntity;
- }
- Map<String, dynamic> $MsgBeanDataEntityToJson(MsgBeanDataEntity entity) {
- final Map<String, dynamic> data = <String, dynamic>{};
- 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;
- }
|