mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-18 00:10:13 +08:00
switch live stream/format/codec/url support
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
import 'package:PiliPlus/models_new/live/live_dm_info/host_list.dart';
|
||||
|
||||
class LiveDmInfoData {
|
||||
String? token;
|
||||
List<HostList>? hostList;
|
||||
String token;
|
||||
List<HostList> hostList;
|
||||
|
||||
LiveDmInfoData({
|
||||
this.token,
|
||||
this.hostList,
|
||||
required this.token,
|
||||
required this.hostList,
|
||||
});
|
||||
|
||||
factory LiveDmInfoData.fromJson(Map<String, dynamic> json) => LiveDmInfoData(
|
||||
token: json['token'] as String?,
|
||||
hostList: (json['host_list'] as List<dynamic>?)
|
||||
?.map((e) => HostList.fromJson(e as Map<String, dynamic>))
|
||||
token: json['token'] as String,
|
||||
hostList: (json['host_list'] as List<dynamic>)
|
||||
.map((e) => HostList.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user