mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 11:41:09 +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/pos_spec.dart
Normal file
21
lib/models/space/pos_spec.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'pos_spec.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class PosSpec {
|
||||
@JsonKey(name: 'coordinate_pos')
|
||||
int? coordinatePos;
|
||||
@JsonKey(name: 'axis_x')
|
||||
double? axisX;
|
||||
@JsonKey(name: 'axis_y')
|
||||
double? axisY;
|
||||
|
||||
PosSpec({this.coordinatePos, this.axisX, this.axisY});
|
||||
|
||||
factory PosSpec.fromJson(Map<String, dynamic> json) {
|
||||
return _$PosSpecFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$PosSpecToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user