fromJson static method
Implementation
static MsgModel fromJson(String source) {
Map<String, dynamic> map = json.decode(source);
return MsgModel(
clientMsgId: map["clientMsgId"],
serverMsgId: map["serverMsgId"],
clientTime: map["clientTime"],
serverTime: map["serverTime"],
senderId: map["senderId"],
senderInfo: map["senderInfo"],
convId: map["convId"],
atUsers: (map["atUsers"] ?? []).cast<String>(),
contentType: map["contentType"],
content: map["content"],
seq: map["seq"],
options: MsgOptionsModel.fromJson(map["options"]),
offlinePush: MsgOfflinePushModel.fromJson(map["offlinePush"]),
ext: map["ext"],
);
}