Fix bug
This commit is contained in:
@@ -65,16 +65,15 @@ class InvitationInfo {
|
||||
/// 平台[Platform]
|
||||
int? platformID;
|
||||
|
||||
InvitationInfo(
|
||||
{this.inviterUserID,
|
||||
this.inviteeUserIDList,
|
||||
this.groupID,
|
||||
this.roomID,
|
||||
this.timeout,
|
||||
this.initiateTime,
|
||||
this.mediaType,
|
||||
this.sessionType,
|
||||
this.platformID});
|
||||
InvitationInfo({this.inviterUserID,
|
||||
this.inviteeUserIDList,
|
||||
this.groupID,
|
||||
this.roomID,
|
||||
this.timeout,
|
||||
this.initiateTime,
|
||||
this.mediaType,
|
||||
this.sessionType,
|
||||
this.platformID});
|
||||
|
||||
InvitationInfo.fromJson(Map<String, dynamic> json) {
|
||||
inviterUserID = json['inviterUserID'];
|
||||
@@ -128,7 +127,9 @@ class SignalingCertificate {
|
||||
token = json['token'];
|
||||
roomID = json['roomID'];
|
||||
liveURL = json['liveURL'];
|
||||
busyLineUserIDList = json['busyLineUserIDList'];
|
||||
busyLineUserIDList =
|
||||
null == json['busyLineUserIDList'] ? null : json['busyLineUserIDList'].cast<
|
||||
String>();
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
@@ -144,16 +145,16 @@ class SignalingCertificate {
|
||||
class RoomCallingInfo {
|
||||
InvitationInfo? invitation;
|
||||
List<Participant>? participant;
|
||||
String? token;
|
||||
String? roomID;
|
||||
String? token;
|
||||
String? liveURL;
|
||||
String? groupID;
|
||||
|
||||
RoomCallingInfo({
|
||||
this.invitation,
|
||||
this.participant,
|
||||
this.token,
|
||||
this.roomID,
|
||||
this.token,
|
||||
this.liveURL,
|
||||
this.groupID,
|
||||
});
|
||||
@@ -168,8 +169,8 @@ class RoomCallingInfo {
|
||||
participant!.add(Participant.fromJson(v));
|
||||
});
|
||||
}
|
||||
token = json['token'];
|
||||
roomID = json['roomID'] ?? invitation?.roomID;
|
||||
token = json['token'];
|
||||
liveURL = json['liveURL'];
|
||||
groupID = json['groupID'];
|
||||
}
|
||||
@@ -182,8 +183,8 @@ class RoomCallingInfo {
|
||||
if (this.participant != null) {
|
||||
data['participant'] = this.participant!.map((v) => v.toJson()).toList();
|
||||
}
|
||||
data['token'] = this.token;
|
||||
data['roomID'] = this.roomID;
|
||||
data['token'] = this.token;
|
||||
data['liveURL'] = this.liveURL;
|
||||
data['groupID'] = this.groupID;
|
||||
return data;
|
||||
@@ -205,7 +206,7 @@ class Participant {
|
||||
? GroupMembersInfo.fromJson(json['groupMemberInfo'])
|
||||
: null;
|
||||
userInfo =
|
||||
json['userInfo'] != null ? UserInfo.fromJson(json['userInfo']) : null;
|
||||
json['userInfo'] != null ? UserInfo.fromJson(json['userInfo']) : null;
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
|
||||
Reference in New Issue
Block a user