Files
PiliPlus/lib/models_new/space/space/draw.dart
bggRGjQaUbCoE 418a1e8d39 reformat
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-07-23 16:47:11 +08:00

18 lines
492 B
Dart

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>),
);
}