333 lines
11 KiB
Dart
333 lines
11 KiB
Dart
// 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 'tender_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',
|
|
);
|
|
|
|
TenderModel _$TenderModelFromJson(Map<String, dynamic> json) {
|
|
return _TenderModel.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$TenderModel {
|
|
@JsonKey(name: 'created_time')
|
|
String? get createdTime => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'tender_id')
|
|
String? get tenderId => throw _privateConstructorUsedError;
|
|
String? get status => throw _privateConstructorUsedError;
|
|
String? get title => throw _privateConstructorUsedError;
|
|
String? get description => throw _privateConstructorUsedError;
|
|
String? get location => throw _privateConstructorUsedError;
|
|
String? get type => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this TenderModel to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of TenderModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$TenderModelCopyWith<TenderModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $TenderModelCopyWith<$Res> {
|
|
factory $TenderModelCopyWith(
|
|
TenderModel value,
|
|
$Res Function(TenderModel) then,
|
|
) = _$TenderModelCopyWithImpl<$Res, TenderModel>;
|
|
@useResult
|
|
$Res call({
|
|
@JsonKey(name: 'created_time') String? createdTime,
|
|
@JsonKey(name: 'tender_id') String? tenderId,
|
|
String? status,
|
|
String? title,
|
|
String? description,
|
|
String? location,
|
|
String? type,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$TenderModelCopyWithImpl<$Res, $Val extends TenderModel>
|
|
implements $TenderModelCopyWith<$Res> {
|
|
_$TenderModelCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of TenderModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? createdTime = freezed,
|
|
Object? tenderId = freezed,
|
|
Object? status = freezed,
|
|
Object? title = freezed,
|
|
Object? description = freezed,
|
|
Object? location = freezed,
|
|
Object? type = freezed,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
createdTime:
|
|
freezed == createdTime
|
|
? _value.createdTime
|
|
: createdTime // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
tenderId:
|
|
freezed == tenderId
|
|
? _value.tenderId
|
|
: tenderId // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
status:
|
|
freezed == status
|
|
? _value.status
|
|
: status // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
title:
|
|
freezed == title
|
|
? _value.title
|
|
: title // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
description:
|
|
freezed == description
|
|
? _value.description
|
|
: description // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
location:
|
|
freezed == location
|
|
? _value.location
|
|
: location // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
type:
|
|
freezed == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$TenderModelImplCopyWith<$Res>
|
|
implements $TenderModelCopyWith<$Res> {
|
|
factory _$$TenderModelImplCopyWith(
|
|
_$TenderModelImpl value,
|
|
$Res Function(_$TenderModelImpl) then,
|
|
) = __$$TenderModelImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
@JsonKey(name: 'created_time') String? createdTime,
|
|
@JsonKey(name: 'tender_id') String? tenderId,
|
|
String? status,
|
|
String? title,
|
|
String? description,
|
|
String? location,
|
|
String? type,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$TenderModelImplCopyWithImpl<$Res>
|
|
extends _$TenderModelCopyWithImpl<$Res, _$TenderModelImpl>
|
|
implements _$$TenderModelImplCopyWith<$Res> {
|
|
__$$TenderModelImplCopyWithImpl(
|
|
_$TenderModelImpl _value,
|
|
$Res Function(_$TenderModelImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of TenderModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? createdTime = freezed,
|
|
Object? tenderId = freezed,
|
|
Object? status = freezed,
|
|
Object? title = freezed,
|
|
Object? description = freezed,
|
|
Object? location = freezed,
|
|
Object? type = freezed,
|
|
}) {
|
|
return _then(
|
|
_$TenderModelImpl(
|
|
createdTime:
|
|
freezed == createdTime
|
|
? _value.createdTime
|
|
: createdTime // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
tenderId:
|
|
freezed == tenderId
|
|
? _value.tenderId
|
|
: tenderId // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
status:
|
|
freezed == status
|
|
? _value.status
|
|
: status // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
title:
|
|
freezed == title
|
|
? _value.title
|
|
: title // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
description:
|
|
freezed == description
|
|
? _value.description
|
|
: description // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
location:
|
|
freezed == location
|
|
? _value.location
|
|
: location // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
type:
|
|
freezed == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$TenderModelImpl implements _TenderModel {
|
|
const _$TenderModelImpl({
|
|
@JsonKey(name: 'created_time') required this.createdTime,
|
|
@JsonKey(name: 'tender_id') required this.tenderId,
|
|
required this.status,
|
|
required this.title,
|
|
required this.description,
|
|
required this.location,
|
|
required this.type,
|
|
});
|
|
|
|
factory _$TenderModelImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$TenderModelImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: 'created_time')
|
|
final String? createdTime;
|
|
@override
|
|
@JsonKey(name: 'tender_id')
|
|
final String? tenderId;
|
|
@override
|
|
final String? status;
|
|
@override
|
|
final String? title;
|
|
@override
|
|
final String? description;
|
|
@override
|
|
final String? location;
|
|
@override
|
|
final String? type;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'TenderModel(createdTime: $createdTime, tenderId: $tenderId, status: $status, title: $title, description: $description, location: $location, type: $type)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$TenderModelImpl &&
|
|
(identical(other.createdTime, createdTime) ||
|
|
other.createdTime == createdTime) &&
|
|
(identical(other.tenderId, tenderId) ||
|
|
other.tenderId == tenderId) &&
|
|
(identical(other.status, status) || other.status == status) &&
|
|
(identical(other.title, title) || other.title == title) &&
|
|
(identical(other.description, description) ||
|
|
other.description == description) &&
|
|
(identical(other.location, location) ||
|
|
other.location == location) &&
|
|
(identical(other.type, type) || other.type == type));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
createdTime,
|
|
tenderId,
|
|
status,
|
|
title,
|
|
description,
|
|
location,
|
|
type,
|
|
);
|
|
|
|
/// Create a copy of TenderModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$TenderModelImplCopyWith<_$TenderModelImpl> get copyWith =>
|
|
__$$TenderModelImplCopyWithImpl<_$TenderModelImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$TenderModelImplToJson(this);
|
|
}
|
|
}
|
|
|
|
abstract class _TenderModel implements TenderModel {
|
|
const factory _TenderModel({
|
|
@JsonKey(name: 'created_time') required final String? createdTime,
|
|
@JsonKey(name: 'tender_id') required final String? tenderId,
|
|
required final String? status,
|
|
required final String? title,
|
|
required final String? description,
|
|
required final String? location,
|
|
required final String? type,
|
|
}) = _$TenderModelImpl;
|
|
|
|
factory _TenderModel.fromJson(Map<String, dynamic> json) =
|
|
_$TenderModelImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: 'created_time')
|
|
String? get createdTime;
|
|
@override
|
|
@JsonKey(name: 'tender_id')
|
|
String? get tenderId;
|
|
@override
|
|
String? get status;
|
|
@override
|
|
String? get title;
|
|
@override
|
|
String? get description;
|
|
@override
|
|
String? get location;
|
|
@override
|
|
String? get type;
|
|
|
|
/// Create a copy of TenderModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$TenderModelImplCopyWith<_$TenderModelImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|