opt models

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-04 15:20:35 +08:00
parent f50b1d2beb
commit b960359a39
858 changed files with 11000 additions and 12588 deletions

View File

@@ -0,0 +1,36 @@
import 'package:PiliPlus/models_new/fav/fav_pgc/cc_on_lock.dart';
import 'package:PiliPlus/models_new/fav/fav_pgc/highlight_ineffective_hd.dart';
import 'package:PiliPlus/models_new/fav/fav_pgc/highlight_ineffective_ott.dart';
import 'package:PiliPlus/models_new/fav/fav_pgc/highlight_ineffective_pink.dart';
class ConfigAttrs {
CcOnLock? ccOnLock;
HighlightIneffectiveHd? highlightIneffectiveHd;
HighlightIneffectiveOtt? highlightIneffectiveOtt;
HighlightIneffectivePink? highlightIneffectivePink;
ConfigAttrs({
this.ccOnLock,
this.highlightIneffectiveHd,
this.highlightIneffectiveOtt,
this.highlightIneffectivePink,
});
factory ConfigAttrs.fromJson(Map<String, dynamic> json) => ConfigAttrs(
ccOnLock: json['cc_on_lock'] == null
? null
: CcOnLock.fromJson(json['cc_on_lock'] as Map<String, dynamic>),
highlightIneffectiveHd: json['highlight_ineffective_hd'] == null
? null
: HighlightIneffectiveHd.fromJson(
json['highlight_ineffective_hd'] as Map<String, dynamic>),
highlightIneffectiveOtt: json['highlight_ineffective_ott'] == null
? null
: HighlightIneffectiveOtt.fromJson(
json['highlight_ineffective_ott'] as Map<String, dynamic>),
highlightIneffectivePink: json['highlight_ineffective_pink'] == null
? null
: HighlightIneffectivePink.fromJson(
json['highlight_ineffective_pink'] as Map<String, dynamic>),
);
}