stock_points_rsp.dart 909 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import 'package:json_annotation/json_annotation.dart';
  2. import '../num_converter.dart';
  3. import '../string_converter.dart';
  4. part 'stock_points_rsp.g.dart';
  5. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  6. class StockPointsRsp {
  7. /*
  8. {
  9. "x": 6,
  10. "y": 2.5,
  11. "partitionsX": 2,
  12. "partitionsY": 2,
  13. "partitionWidth": 12,
  14. "partitionLength": 5,
  15. "layers": [
  16. {
  17. "layer": 0,
  18. "height": 0.2
  19. }
  20. ]
  21. }
  22. */
  23. double? x;
  24. double? y;
  25. double? partitionX;
  26. double? partitionY;
  27. double? partitionWidth;
  28. double? partitionLength;
  29. List<double?>? layers;
  30. StockPointsRsp({
  31. this.x,
  32. this.y,
  33. this.partitionX,
  34. this.partitionY,
  35. this.partitionWidth,
  36. this.partitionLength,
  37. this.layers,
  38. });
  39. factory StockPointsRsp.fromJson(Map<String, dynamic> json) => _$StockPointsRspFromJson(json);
  40. Map<String, dynamic> toJson() => _$StockPointsRspToJson(this);
  41. }