V2TimSignalingInfo.fromJson constructor

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

Implementation

V2TimSignalingInfo.fromJson(Map<String, dynamic> json) {
  inviteID = json['inviteID'];
  groupID = json['groupID'];
  inviter = json['inviter'];
  inviteeList = json['inviteeList'];
  data = json['data'];
  timeout = json['timeout'];
  actionType = json['actionType'];
  // 下方三个参数ios不会返回
  if (json['businessID'] != null) businessID = json['businessID'];
  if (json['isOnlineUserOnly'] != null) {
    isOnlineUserOnly = json['isOnlineUserOnly'];
  }
  if (json['offlinePushInfo'] != null) {
    offlinePushInfo = V2TimOfflinePushInfo.fromJson(json['offlinePushInfo']);
  }
}