toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['content'] = _content;
map['msgId'] = _msgId;
map['msgTimeStamp'] = _msgTimeStamp;
map['read'] = _read;
if (_receiveUserInfo != null) {
map['receiveUserInfo'] = _receiveUserInfo?.toJson();
}
map['requestId'] = _requestId;
map['send'] = _send;
if (_sendUserInfo != null) {
map['sendUserInfo'] = _sendUserInfo?.toJson();
}
map['sessionId'] = _sessionId;
if (_sessionType != null) {
map['sessionType'] = _sessionType!.toJson();
} else {
map['sessionType'] = SessionTypeEnum.defaultValue.toJson();
}
if (_status == null) {
map['status'] = MsgStatusEnum.defaultValue.toJson();
} else {
map['status'] = _status?.toJson();
}
if (_type != null) {
map['type'] = _type?.toJson();
} else {
map['type'] = MsgTypeEnum.defaultValue.toJson();
}
map['uri'] = _uri;
map['messageSeq'] = _messageSeq;
map['localExtension'] = _localExtension;
map['pushContent'] = _pushContent;
map['pushPayload'] = _pushPayload;
map['intentUrl'] = _intentUrl;
return map;
}