refa: article (#757)

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
dom
2025-04-26 14:54:22 +08:00
committed by GitHub
parent 64f7ba2a1a
commit 40fb93f036
87 changed files with 2628 additions and 993 deletions

View File

@@ -0,0 +1,19 @@
class PosSpec {
double? axisX;
double? axisY;
int? coordinatePos;
PosSpec({this.axisX, this.axisY, this.coordinatePos});
factory PosSpec.fromJson(Map<String, dynamic> json) => PosSpec(
axisX: (json['axis_x'] as num?)?.toDouble(),
axisY: (json['axis_y'] as num?)?.toDouble(),
coordinatePos: json['coordinate_pos'] as int?,
);
Map<String, dynamic> toJson() => {
'axis_x': axisX,
'axis_y': axisY,
'coordinate_pos': coordinatePos,
};
}