CallEvent.fromJson constructor

CallEvent.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CallEvent.fromJson(Map<String, dynamic> json) {
  return CallEvent(
    id: json["id"] ?? "",
    isGroup: json["isGroup"] ?? false,
    isVideo: json["isVideo"] ?? false,
    offerTime: json["offerTime"] ?? 0,
    sender: json["sender"] ?? "",
    peerJid: json["peerJid"] ?? "",
  );
}