mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-30 07:15:51 +08:00
Refactor member page (#3)
* refactor: member page * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
This commit is contained in:
21
lib/models/space/draw.dart
Normal file
21
lib/models/space/draw.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
import 'color_config.dart';
|
||||
|
||||
part 'draw.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Draw {
|
||||
@JsonKey(name: 'draw_type')
|
||||
int? drawType;
|
||||
@JsonKey(name: 'fill_mode')
|
||||
int? fillMode;
|
||||
@JsonKey(name: 'color_config')
|
||||
ColorConfig? colorConfig;
|
||||
|
||||
Draw({this.drawType, this.fillMode, this.colorConfig});
|
||||
|
||||
factory Draw.fromJson(Map<String, dynamic> json) => _$DrawFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$DrawToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user