Added logic to YourTenders
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
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;
|
||||
|
||||
factory YourTendersRequestModel.fromJson(Map<String, dynamic> json) =>
|
||||
_$YourTendersRequestModelFromJson(json);
|
||||
}
|
||||
+181
@@ -0,0 +1,181 @@
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// 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
|
||||
|
||||
part of 'your_tenders_request_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
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;
|
||||
|
||||
/// Serializes this YourTendersRequestModel to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
|
||||
/// 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});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$YourTendersRequestModelCopyWithImpl<
|
||||
$Res,
|
||||
$Val extends YourTendersRequestModel
|
||||
>
|
||||
implements $YourTendersRequestModelCopyWith<$Res> {
|
||||
_$YourTendersRequestModelCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// @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,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$YourTendersRequestModelImpl implements _YourTendersRequestModel {
|
||||
const _$YourTendersRequestModelImpl({required this.id});
|
||||
|
||||
factory _$YourTendersRequestModelImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$YourTendersRequestModelImplFromJson(json);
|
||||
|
||||
@override
|
||||
final String id;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'YourTendersRequestModel(id: $id)';
|
||||
}
|
||||
|
||||
@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);
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'your_tenders_request_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$YourTendersRequestModelImpl _$$YourTendersRequestModelImplFromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _$YourTendersRequestModelImpl(id: json['id'] as String);
|
||||
|
||||
Map<String, dynamic> _$$YourTendersRequestModelImplToJson(
|
||||
_$YourTendersRequestModelImpl instance,
|
||||
) => <String, dynamic>{'id': instance.id};
|
||||
Reference in New Issue
Block a user