CallingMessage.fromJSON constructor

CallingMessage.fromJSON(
  1. dynamic json
)

Implementation

CallingMessage.fromJSON(json) {
  final detailData = jsonDecode(json["data"]);
  actionType = json["actionType"];
  timeout = json["timeout"];
  inviter = json["inviter"];
  inviteeList = List<String>.from(json["inviteeList"]);
  inviteID = json["inviteID"];
  callType = detailData["call_type"];
  roomID = detailData["room_id"];
  callEnd = detailData["call_end"];
  isGroup = detailData["is_group"];
}