28 lines
636 B
Dart
28 lines
636 B
Dart
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<String, dynamic> json) => _$StockResponseFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$StockResponseToJson(this);
|
|
} |