merged branches

This commit is contained in:
amirrezaghabeli
2025-08-12 09:11:26 +03:30
parent ba3becc709
commit a7e208a5de
58 changed files with 4584 additions and 2336 deletions
@@ -4,10 +4,9 @@ part 'your_tenders_request_model.freezed.dart';
part 'your_tenders_request_model.g.dart';
@freezed
class YourTendersRequestModel with _$YourTendersRequestModel {
const factory YourTendersRequestModel({
required String id,
}) = _YourTendersRequestModel;
abstract class YourTendersRequestModel with _$YourTendersRequestModel {
const factory YourTendersRequestModel({required String id}) =
_YourTendersRequestModel;
factory YourTendersRequestModel.fromJson(Map<String, dynamic> json) =>
_$YourTendersRequestModelFromJson(json);
@@ -1,5 +1,5 @@
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
@@ -9,173 +9,269 @@ part of 'your_tenders_request_model.dart';
// FreezedGenerator
// **************************************************************************
// dart format off
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models',
);
YourTendersRequestModel _$YourTendersRequestModelFromJson(
Map<String, dynamic> json,
) {
return _YourTendersRequestModel.fromJson(json);
}
/// @nodoc
mixin _$YourTendersRequestModel {
String get id => throw _privateConstructorUsedError;
String get id;
/// Create a copy of YourTendersRequestModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$YourTendersRequestModelCopyWith<YourTendersRequestModel> get copyWith => _$YourTendersRequestModelCopyWithImpl<YourTendersRequestModel>(this as YourTendersRequestModel, _$identity);
/// Serializes this YourTendersRequestModel to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is YourTendersRequestModel&&(identical(other.id, id) || other.id == id));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id);
@override
String toString() {
return 'YourTendersRequestModel(id: $id)';
}
/// Create a copy of YourTendersRequestModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$YourTendersRequestModelCopyWith<YourTendersRequestModel> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $YourTendersRequestModelCopyWith<$Res> {
factory $YourTendersRequestModelCopyWith(
YourTendersRequestModel value,
$Res Function(YourTendersRequestModel) then,
) = _$YourTendersRequestModelCopyWithImpl<$Res, YourTendersRequestModel>;
@useResult
$Res call({String id});
}
abstract mixin class $YourTendersRequestModelCopyWith<$Res> {
factory $YourTendersRequestModelCopyWith(YourTendersRequestModel value, $Res Function(YourTendersRequestModel) _then) = _$YourTendersRequestModelCopyWithImpl;
@useResult
$Res call({
String id
});
}
/// @nodoc
class _$YourTendersRequestModelCopyWithImpl<
$Res,
$Val extends YourTendersRequestModel
>
class _$YourTendersRequestModelCopyWithImpl<$Res>
implements $YourTendersRequestModelCopyWith<$Res> {
_$YourTendersRequestModelCopyWithImpl(this._value, this._then);
_$YourTendersRequestModelCopyWithImpl(this._self, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
final YourTendersRequestModel _self;
final $Res Function(YourTendersRequestModel) _then;
/// Create a copy of YourTendersRequestModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({Object? id = null}) {
return _then(
_value.copyWith(
id:
null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
)
as $Val,
);
}
/// Create a copy of YourTendersRequestModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = null,}) {
return _then(_self.copyWith(
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as String,
));
}
/// @nodoc
abstract class _$$YourTendersRequestModelImplCopyWith<$Res>
implements $YourTendersRequestModelCopyWith<$Res> {
factory _$$YourTendersRequestModelImplCopyWith(
_$YourTendersRequestModelImpl value,
$Res Function(_$YourTendersRequestModelImpl) then,
) = __$$YourTendersRequestModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String id});
}
/// @nodoc
class __$$YourTendersRequestModelImplCopyWithImpl<$Res>
extends
_$YourTendersRequestModelCopyWithImpl<
$Res,
_$YourTendersRequestModelImpl
>
implements _$$YourTendersRequestModelImplCopyWith<$Res> {
__$$YourTendersRequestModelImplCopyWithImpl(
_$YourTendersRequestModelImpl _value,
$Res Function(_$YourTendersRequestModelImpl) _then,
) : super(_value, _then);
/// Create a copy of YourTendersRequestModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({Object? id = null}) {
return _then(
_$YourTendersRequestModelImpl(
id:
null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
),
);
}
/// Adds pattern-matching-related methods to [YourTendersRequestModel].
extension YourTendersRequestModelPatterns on YourTendersRequestModel {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _YourTendersRequestModel value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _YourTendersRequestModel() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _YourTendersRequestModel value) $default,){
final _that = this;
switch (_that) {
case _YourTendersRequestModel():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _YourTendersRequestModel value)? $default,){
final _that = this;
switch (_that) {
case _YourTendersRequestModel() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String id)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _YourTendersRequestModel() when $default != null:
return $default(_that.id);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String id) $default,) {final _that = this;
switch (_that) {
case _YourTendersRequestModel():
return $default(_that.id);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String id)? $default,) {final _that = this;
switch (_that) {
case _YourTendersRequestModel() when $default != null:
return $default(_that.id);case _:
return null;
}
}
}
/// @nodoc
@JsonSerializable()
class _$YourTendersRequestModelImpl implements _YourTendersRequestModel {
const _$YourTendersRequestModelImpl({required this.id});
factory _$YourTendersRequestModelImpl.fromJson(Map<String, dynamic> json) =>
_$$YourTendersRequestModelImplFromJson(json);
class _YourTendersRequestModel implements YourTendersRequestModel {
const _YourTendersRequestModel({required this.id});
factory _YourTendersRequestModel.fromJson(Map<String, dynamic> json) => _$YourTendersRequestModelFromJson(json);
@override
final String id;
@override final String id;
@override
String toString() {
return 'YourTendersRequestModel(id: $id)';
}
/// Create a copy of YourTendersRequestModel
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$YourTendersRequestModelCopyWith<_YourTendersRequestModel> get copyWith => __$YourTendersRequestModelCopyWithImpl<_YourTendersRequestModel>(this, _$identity);
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$YourTendersRequestModelImpl &&
(identical(other.id, id) || other.id == id));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, id);
/// Create a copy of YourTendersRequestModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$YourTendersRequestModelImplCopyWith<_$YourTendersRequestModelImpl>
get copyWith => __$$YourTendersRequestModelImplCopyWithImpl<
_$YourTendersRequestModelImpl
>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$YourTendersRequestModelImplToJson(this);
}
@override
Map<String, dynamic> toJson() {
return _$YourTendersRequestModelToJson(this, );
}
abstract class _YourTendersRequestModel implements YourTendersRequestModel {
const factory _YourTendersRequestModel({required final String id}) =
_$YourTendersRequestModelImpl;
factory _YourTendersRequestModel.fromJson(Map<String, dynamic> json) =
_$YourTendersRequestModelImpl.fromJson;
@override
String get id;
/// Create a copy of YourTendersRequestModel
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$YourTendersRequestModelImplCopyWith<_$YourTendersRequestModelImpl>
get copyWith => throw _privateConstructorUsedError;
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _YourTendersRequestModel&&(identical(other.id, id) || other.id == id));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id);
@override
String toString() {
return 'YourTendersRequestModel(id: $id)';
}
}
/// @nodoc
abstract mixin class _$YourTendersRequestModelCopyWith<$Res> implements $YourTendersRequestModelCopyWith<$Res> {
factory _$YourTendersRequestModelCopyWith(_YourTendersRequestModel value, $Res Function(_YourTendersRequestModel) _then) = __$YourTendersRequestModelCopyWithImpl;
@override @useResult
$Res call({
String id
});
}
/// @nodoc
class __$YourTendersRequestModelCopyWithImpl<$Res>
implements _$YourTendersRequestModelCopyWith<$Res> {
__$YourTendersRequestModelCopyWithImpl(this._self, this._then);
final _YourTendersRequestModel _self;
final $Res Function(_YourTendersRequestModel) _then;
/// Create a copy of YourTendersRequestModel
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = null,}) {
return _then(_YourTendersRequestModel(
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as String,
));
}
}
// dart format on
@@ -6,10 +6,10 @@ part of 'your_tenders_request_model.dart';
// JsonSerializableGenerator
// **************************************************************************
_$YourTendersRequestModelImpl _$$YourTendersRequestModelImplFromJson(
_YourTendersRequestModel _$YourTendersRequestModelFromJson(
Map<String, dynamic> json,
) => _$YourTendersRequestModelImpl(id: json['id'] as String);
) => _YourTendersRequestModel(id: json['id'] as String);
Map<String, dynamic> _$$YourTendersRequestModelImplToJson(
_$YourTendersRequestModelImpl instance,
Map<String, dynamic> _$YourTendersRequestModelToJson(
_YourTendersRequestModel instance,
) => <String, dynamic>{'id': instance.id};