/// RTC 频道创建返回数据 class RtcChannelData { final String channelId; final String token; RtcChannelData({ required this.channelId, required this.token, }); factory RtcChannelData.fromJson(Map json) { return RtcChannelData( channelId: json['channelId']?.toString() ?? '', token: json['token']?.toString() ?? '', ); } Map toJson() { return { 'channelId': channelId, 'token': token, }; } @override String toString() => 'RtcChannelData(channelId: $channelId)'; }