feat : sale in provence

This commit is contained in:
2025-07-07 16:07:52 +03:30
parent eede1f4b29
commit 93ec5774c8
23 changed files with 529 additions and 713 deletions

View File

@@ -71,6 +71,7 @@ abstract class AllocatedMadeModel with _$AllocatedMadeModel {
abstract class Product with _$Product {
factory Product({
int? weightAverage,
String? name,
}) = _Product;
factory Product.fromJson(Map<String, dynamic> json) =>

View File

@@ -383,7 +383,7 @@ $StewardCopyWith<$Res>? get toGuilds {
/// @nodoc
mixin _$Product {
int? get weightAverage;
int? get weightAverage; String? get name;
/// Create a copy of Product
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@@ -396,16 +396,16 @@ $ProductCopyWith<Product> get copyWith => _$ProductCopyWithImpl<Product>(this as
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is Product&&(identical(other.weightAverage, weightAverage) || other.weightAverage == weightAverage));
return identical(this, other) || (other.runtimeType == runtimeType&&other is Product&&(identical(other.weightAverage, weightAverage) || other.weightAverage == weightAverage)&&(identical(other.name, name) || other.name == name));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,weightAverage);
int get hashCode => Object.hash(runtimeType,weightAverage,name);
@override
String toString() {
return 'Product(weightAverage: $weightAverage)';
return 'Product(weightAverage: $weightAverage, name: $name)';
}
@@ -416,7 +416,7 @@ abstract mixin class $ProductCopyWith<$Res> {
factory $ProductCopyWith(Product value, $Res Function(Product) _then) = _$ProductCopyWithImpl;
@useResult
$Res call({
int? weightAverage
int? weightAverage, String? name
});
@@ -433,10 +433,11 @@ class _$ProductCopyWithImpl<$Res>
/// Create a copy of Product
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? weightAverage = freezed,}) {
@pragma('vm:prefer-inline') @override $Res call({Object? weightAverage = freezed,Object? name = freezed,}) {
return _then(_self.copyWith(
weightAverage: freezed == weightAverage ? _self.weightAverage : weightAverage // ignore: cast_nullable_to_non_nullable
as int?,
as int?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
as String?,
));
}
@@ -447,10 +448,11 @@ as int?,
@JsonSerializable()
class _Product implements Product {
_Product({this.weightAverage});
_Product({this.weightAverage, this.name});
factory _Product.fromJson(Map<String, dynamic> json) => _$ProductFromJson(json);
@override final int? weightAverage;
@override final String? name;
/// Create a copy of Product
/// with the given fields replaced by the non-null parameter values.
@@ -465,16 +467,16 @@ Map<String, dynamic> toJson() {
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _Product&&(identical(other.weightAverage, weightAverage) || other.weightAverage == weightAverage));
return identical(this, other) || (other.runtimeType == runtimeType&&other is _Product&&(identical(other.weightAverage, weightAverage) || other.weightAverage == weightAverage)&&(identical(other.name, name) || other.name == name));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,weightAverage);
int get hashCode => Object.hash(runtimeType,weightAverage,name);
@override
String toString() {
return 'Product(weightAverage: $weightAverage)';
return 'Product(weightAverage: $weightAverage, name: $name)';
}
@@ -485,7 +487,7 @@ abstract mixin class _$ProductCopyWith<$Res> implements $ProductCopyWith<$Res> {
factory _$ProductCopyWith(_Product value, $Res Function(_Product) _then) = __$ProductCopyWithImpl;
@override @useResult
$Res call({
int? weightAverage
int? weightAverage, String? name
});
@@ -502,10 +504,11 @@ class __$ProductCopyWithImpl<$Res>
/// Create a copy of Product
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? weightAverage = freezed,}) {
@override @pragma('vm:prefer-inline') $Res call({Object? weightAverage = freezed,Object? name = freezed,}) {
return _then(_Product(
weightAverage: freezed == weightAverage ? _self.weightAverage : weightAverage // ignore: cast_nullable_to_non_nullable
as int?,
as int?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
as String?,
));
}

View File

@@ -134,11 +134,14 @@ Map<String, dynamic> _$AllocatedMadeModelToJson(
'dispenser': instance.dispenser,
};
_Product _$ProductFromJson(Map<String, dynamic> json) =>
_Product(weightAverage: (json['weight_average'] as num?)?.toInt());
_Product _$ProductFromJson(Map<String, dynamic> json) => _Product(
weightAverage: (json['weight_average'] as num?)?.toInt(),
name: json['name'] as String?,
);
Map<String, dynamic> _$ProductToJson(_Product instance) => <String, dynamic>{
'weight_average': instance.weightAverage,
'name': instance.name,
};
_Steward _$StewardFromJson(Map<String, dynamic> json) => _Steward(