SyMessage.fromJson constructor

SyMessage.fromJson(
  1. dynamic json
)

Implementation

SyMessage.fromJson(dynamic json) {
  _content = json['content'];
  _msgId = json['msgId'];
  _msgTimeStamp = json['msgTimeStamp'];
  _read = json['read'];
  _receiveUserInfo = json['receiveUserInfo'] != null
      ? SyContact.fromJson(json['receiveUserInfo'])
      : null;
  _requestId = json['requestId'];
  _send = json['send'];
  _sendUserInfo = json['sendUserInfo'] != null
      ? SyContact.fromJson(json['sendUserInfo'])
      : null;
  _sessionId = json['sessionId'];
  _sessionType = SessionTypeValue.fromJson(json['sessionType']);
  _status = MsgStatusValue.fromJson(json["status"]);
  _type = MsgTypeValue.fromJson(json['type']);
  _uri = json['uri'];
  _messageSeq = json['messageSeq'];
  _pushContent = json['pushContent'];
  _localExtension = json['localExtension'];
  _pushPayload = json['pushPayload'];
  _intentUrl = json['intentUrl'];
}