forked from eatvio/eatvio_app
fix: ui overflow nav-bar, name files in chat, qr-code scanner in dev-tools, message field size, keyboard type
This commit is contained in:
29
lib/features/barcode/models/barcode_product_model.dart
Normal file
29
lib/features/barcode/models/barcode_product_model.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'barcode_product_model.freezed.dart';
|
||||
part 'barcode_product_model.g.dart';
|
||||
|
||||
@freezed
|
||||
abstract class BarcodeProductModel with _$BarcodeProductModel {
|
||||
const factory BarcodeProductModel({
|
||||
// ignore: non_constant_identifier_names
|
||||
required String GTIN,
|
||||
@JsonKey(name: 'Товарный знак (ru)') String? brandName,
|
||||
@JsonKey(name: 'Описание (ru)') String? description,
|
||||
@JsonKey(name: 'Количество/вес') String? quantity,
|
||||
@JsonKey(name: 'Рынок сбыта') String? market,
|
||||
@JsonKey(name: 'Калорийность') double? calories,
|
||||
@JsonKey(name: 'Белки') double? proteins,
|
||||
@JsonKey(name: 'Жиры') double? fats,
|
||||
@JsonKey(name: 'Углеводы') double? carbohydrates,
|
||||
}) = _BarcodeProductModel;
|
||||
|
||||
factory BarcodeProductModel.fromJson(Map<String, Object?> json) => _$BarcodeProductModelFromJson(json);
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class BarcodeTaskStatusModel with _$BarcodeTaskStatusModel {
|
||||
const factory BarcodeTaskStatusModel({String? status, @JsonKey(name: 'task_id') String? taskId, BarcodeProductModel? data}) = _BarcodeTaskStatusModel;
|
||||
|
||||
factory BarcodeTaskStatusModel.fromJson(Map<String, Object?> json) => _$BarcodeTaskStatusModelFromJson(json);
|
||||
}
|
||||
Reference in New Issue
Block a user