mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-15 15:00:11 +08:00
19 lines
477 B
Dart
19 lines
477 B
Dart
import 'package:PiliPlus/models_new/live/live_dm_info/host_list.dart';
|
|
|
|
class LiveDmInfoData {
|
|
String token;
|
|
List<HostList> hostList;
|
|
|
|
LiveDmInfoData({
|
|
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>))
|
|
.toList(),
|
|
);
|
|
}
|