mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-27 12:36:27 +08:00
14 lines
369 B
Dart
14 lines
369 B
Dart
class PosSpec {
|
|
int? coordinatePos;
|
|
double? axisX;
|
|
double? axisY;
|
|
|
|
PosSpec({this.coordinatePos, this.axisX, this.axisY});
|
|
|
|
factory PosSpec.fromJson(Map<String, dynamic> json) => PosSpec(
|
|
coordinatePos: json['coordinate_pos'] as int?,
|
|
axisX: (json['axis_x'] as num?)?.toDouble(),
|
|
axisY: (json['axis_y'] as num?)?.toDouble(),
|
|
);
|
|
}
|