12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import 'package:json_annotation/json_annotation.dart';
- import '../num_converter.dart';
- import '../string_converter.dart';
- part 'stock_points_rsp.g.dart';
- @JsonSerializable(converters: [NumConverter(), StringConverter()])
- class StockPointsRsp {
- /*
- {
- "x": 6,
- "y": 2.5,
- "partitionsX": 2,
- "partitionsY": 2,
- "partitionWidth": 12,
- "partitionLength": 5,
- "layers": [
- {
- "layer": 0,
- "height": 0.2
- }
- ]
- }
- */
- double? x;
- double? y;
- double? partitionX;
- double? partitionY;
- double? partitionWidth;
- double? partitionLength;
- List<double?>? layers;
- StockPointsRsp({
- this.x,
- this.y,
- this.partitionX,
- this.partitionY,
- this.partitionWidth,
- this.partitionLength,
- this.layers,
- });
- factory StockPointsRsp.fromJson(Map<String, dynamic> json) => _$StockPointsRspFromJson(json);
- Map<String, dynamic> toJson() => _$StockPointsRspToJson(this);
- }
|