mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-20 02:20:11 +08:00
@@ -8,11 +8,10 @@ class Draw {
|
||||
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>),
|
||||
);
|
||||
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