mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-17 06:40:13 +08:00
18
lib/models_new/space/space/draw.dart
Normal file
18
lib/models_new/space/space/draw.dart
Normal 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>),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user