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? layers; StockPointsRsp({ this.x, this.y, this.partitionX, this.partitionY, this.partitionWidth, this.partitionLength, this.layers, }); factory StockPointsRsp.fromJson(Map json) => _$StockPointsRspFromJson(json); Map toJson() => _$StockPointsRspToJson(this); }