You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 lines
577 B

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