main
hrxiang 3 years ago
parent c99d1e4d67
commit a77c86e87a
  1. 27
      lib/src/models/signaling_info.dart

@ -65,15 +65,16 @@ class InvitationInfo {
/// [Platform] /// [Platform]
int? platformID; int? platformID;
InvitationInfo({this.inviterUserID, InvitationInfo(
this.inviteeUserIDList, {this.inviterUserID,
this.groupID, this.inviteeUserIDList,
this.roomID, this.groupID,
this.timeout, this.roomID,
this.initiateTime, this.timeout,
this.mediaType, this.initiateTime,
this.sessionType, this.mediaType,
this.platformID}); this.sessionType,
this.platformID});
InvitationInfo.fromJson(Map<String, dynamic> json) { InvitationInfo.fromJson(Map<String, dynamic> json) {
inviterUserID = json['inviterUserID']; inviterUserID = json['inviterUserID'];
@ -127,9 +128,9 @@ class SignalingCertificate {
token = json['token']; token = json['token'];
roomID = json['roomID']; roomID = json['roomID'];
liveURL = json['liveURL']; liveURL = json['liveURL'];
busyLineUserIDList = busyLineUserIDList = null == json['busyLineUserIDList']
null == json['busyLineUserIDList'] ? null : json['busyLineUserIDList'].cast< ? null
String>(); : json['busyLineUserIDList'].cast<String>();
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@ -206,7 +207,7 @@ class Participant {
? GroupMembersInfo.fromJson(json['groupMemberInfo']) ? GroupMembersInfo.fromJson(json['groupMemberInfo'])
: null; : null;
userInfo = userInfo =
json['userInfo'] != null ? UserInfo.fromJson(json['userInfo']) : null; json['userInfo'] != null ? UserInfo.fromJson(json['userInfo']) : null;
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {

Loading…
Cancel
Save