import 'package:json_annotation/json_annotation.dart'; part 'stock_response.g.dart'; @JsonSerializable() class StockResponse { StockResponse({ required this.articul, required this.ean13, required this.eaccGoodId, required this.name, required this.price, required this.cnt, required this.katName, }); int articul; String ean13; @JsonKey(name: 'eacc_good_id') int eaccGoodId; String name; double price; double cnt; String katName; factory StockResponse.fromJson(Map json) => _$StockResponseFromJson(json); Map toJson() => _$StockResponseToJson(this); }