26 lines
645 B
Dart
26 lines
645 B
Dart
class CheckItem {
|
|
final String name;
|
|
final num cnt;
|
|
final num price;
|
|
final int articul;
|
|
final String? excise;
|
|
CheckItem({required this.name, required this.cnt, required this.price, required this.articul, this.excise});
|
|
|
|
static CheckItem fromJson(Map<String, dynamic> json) {
|
|
return CheckItem(
|
|
name: json['name'],
|
|
cnt: json['cnt'],
|
|
price: json['price'],
|
|
articul: json['articul'],
|
|
excise: json['excise'],
|
|
);
|
|
}
|
|
Map<String, dynamic> toJson() =>
|
|
{
|
|
'name': name,
|
|
'cnt': cnt,
|
|
'price': price,
|
|
'articul': articul,
|
|
'excise' : excise
|
|
};
|
|
} |