mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 00:28:38 +00:00
refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
20
lib/models/dynamics/opus_detail/general_cfg.dart
Normal file
20
lib/models/dynamics/opus_detail/general_cfg.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
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(),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user