mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 10:36:24 +08:00
33
lib/models_new/live/live_dm_info/data.dart
Normal file
33
lib/models_new/live/live_dm_info/data.dart
Normal file
@@ -0,0 +1,33 @@
|
||||
import 'package:PiliPlus/models_new/live/live_dm_info/host_list.dart';
|
||||
|
||||
class LiveDmInfoData {
|
||||
String? group;
|
||||
int? businessId;
|
||||
double? refreshRowFactor;
|
||||
int? refreshRate;
|
||||
int? maxDelay;
|
||||
String? token;
|
||||
List<HostList>? hostList;
|
||||
|
||||
LiveDmInfoData({
|
||||
this.group,
|
||||
this.businessId,
|
||||
this.refreshRowFactor,
|
||||
this.refreshRate,
|
||||
this.maxDelay,
|
||||
this.token,
|
||||
this.hostList,
|
||||
});
|
||||
|
||||
factory LiveDmInfoData.fromJson(Map<String, dynamic> json) => LiveDmInfoData(
|
||||
group: json['group'] as String?,
|
||||
businessId: json['business_id'] as int?,
|
||||
refreshRowFactor: (json['refresh_row_factor'] as num?)?.toDouble(),
|
||||
refreshRate: json['refresh_rate'] as int?,
|
||||
maxDelay: json['max_delay'] as int?,
|
||||
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