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,18 @@
import 'package:PiliPlus/models_new/space/space/color_config.dart';
class Draw {
int? drawType;
int? fillMode;
ColorConfig? colorConfig;
Draw({this.drawType, this.fillMode, this.colorConfig});
factory Draw.fromJson(Map<String, dynamic> json) => Draw(
drawType: json['draw_type'] as int?,
fillMode: json['fill_mode'] as int?,
colorConfig: json['color_config'] == null
? null
: ColorConfig.fromJson(
json['color_config'] as Map<String, dynamic>),
);
}