mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 19:16:44 +08:00
@@ -20,14 +20,14 @@ class LiveDmInfoData {
|
||||
});
|
||||
|
||||
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(),
|
||||
);
|
||||
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(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -7,9 +7,9 @@ class HostList {
|
||||
HostList({this.host, this.port, this.wssPort, this.wsPort});
|
||||
|
||||
factory HostList.fromJson(Map<String, dynamic> json) => HostList(
|
||||
host: json['host'] as String?,
|
||||
port: json['port'] as int?,
|
||||
wssPort: json['wss_port'] as int?,
|
||||
wsPort: json['ws_port'] as int?,
|
||||
);
|
||||
host: json['host'] as String?,
|
||||
port: json['port'] as int?,
|
||||
wssPort: json['wss_port'] as int?,
|
||||
wsPort: json['ws_port'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user