mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
21 lines
541 B
Dart
21 lines
541 B
Dart
import 'general_config.dart';
|
|
|
|
class GeneralCfg {
|
|
int? configType;
|
|
GeneralConfig? generalConfig;
|
|
|
|
GeneralCfg({this.configType, this.generalConfig});
|
|
|
|
factory GeneralCfg.fromJson(Map<String, dynamic> json) => GeneralCfg(
|
|
configType: json['config_type'] as int?,
|
|
generalConfig: json['general_config'] == null
|
|
? null
|
|
: GeneralConfig.fromJson(json['general_config'] as Map<String, dynamic>),
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'config_type': configType,
|
|
'general_config': generalConfig?.toJson(),
|
|
};
|
|
}
|