SignalingInfoEntity.fromJson constructor
SignalingInfoEntity.fromJson(
- dynamic data
Implementation
SignalingInfoEntity.fromJson(data) {
Map<String, dynamic> json =
data is Map ? data.cast<String, dynamic>() : jsonDecode(data);
if (json['inviteID'] != null) inviteID = json["inviteID"];
if (json['groupID'] != null) groupID = json["groupID"];
if (json['inviter'] != null) inviter = json["inviter"];
if (json['inviteeList'] != null) inviteeList = json["inviteeList"];
if (json['data'] != null) this.data = json["data"];
if (json['timeout'] != null) timeout = json["timeout"];
if (json['actionType'] != null) if (json["actionType"] != null)
actionType = SignalingActionTypeTool.getByInt(json["actionType"]);
if (json['businessID'] != null) businessID = json["businessID"];
if (json['onlineUserOnly'] != null) onlineUserOnly = json["onlineUserOnly"];
if (json["offlinePushInfo"] != null)
offlinePushInfo = OfflinePushInfoEntity.fromJson(json["offlinePushInfo"]);
}