RecallMessageInfo.fromJson constructor

RecallMessageInfo.fromJson(
  1. Map map
)

Implementation

factory RecallMessageInfo.fromJson(Map map) {
  return RecallMessageInfo._(
    recallMessageId: map['recallMsgId'],
    recallBy: map['recallBy'],
    recallMessage: map.getValue<EMMessage>(
      "msg",
      callback: (map) {
        if (map == null) {
          return null;
        }
        return EMMessage.fromJson(map);
      },
    ),
    ext: map.getValue('ext', callback: (ext) => ext as String?),
  );
}