Files
eatvio_app/lib/features/feed/models/feed_consultant_model.freezed.dart
2025-01-22 15:27:10 +03:00

500 lines
17 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 'feed_consultant_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');
FeedConsultantPaginationModel _$FeedConsultantPaginationModelFromJson(
Map<String, dynamic> json) {
return _FeedConsultantPaginationModel.fromJson(json);
}
/// @nodoc
mixin _$FeedConsultantPaginationModel {
List<FeedConsultantModel> get data => throw _privateConstructorUsedError;
Links get links => throw _privateConstructorUsedError;
Meta get meta => throw _privateConstructorUsedError;
/// Serializes this FeedConsultantPaginationModel to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of FeedConsultantPaginationModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$FeedConsultantPaginationModelCopyWith<FeedConsultantPaginationModel>
get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $FeedConsultantPaginationModelCopyWith<$Res> {
factory $FeedConsultantPaginationModelCopyWith(
FeedConsultantPaginationModel value,
$Res Function(FeedConsultantPaginationModel) then) =
_$FeedConsultantPaginationModelCopyWithImpl<$Res,
FeedConsultantPaginationModel>;
@useResult
$Res call({List<FeedConsultantModel> data, Links links, Meta meta});
$LinksCopyWith<$Res> get links;
$MetaCopyWith<$Res> get meta;
}
/// @nodoc
class _$FeedConsultantPaginationModelCopyWithImpl<$Res,
$Val extends FeedConsultantPaginationModel>
implements $FeedConsultantPaginationModelCopyWith<$Res> {
_$FeedConsultantPaginationModelCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of FeedConsultantPaginationModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? data = null,
Object? links = null,
Object? meta = null,
}) {
return _then(_value.copyWith(
data: null == data
? _value.data
: data // ignore: cast_nullable_to_non_nullable
as List<FeedConsultantModel>,
links: null == links
? _value.links
: links // ignore: cast_nullable_to_non_nullable
as Links,
meta: null == meta
? _value.meta
: meta // ignore: cast_nullable_to_non_nullable
as Meta,
) as $Val);
}
/// Create a copy of FeedConsultantPaginationModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$LinksCopyWith<$Res> get links {
return $LinksCopyWith<$Res>(_value.links, (value) {
return _then(_value.copyWith(links: value) as $Val);
});
}
/// Create a copy of FeedConsultantPaginationModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$MetaCopyWith<$Res> get meta {
return $MetaCopyWith<$Res>(_value.meta, (value) {
return _then(_value.copyWith(meta: value) as $Val);
});
}
}
/// @nodoc
abstract class _$$FeedConsultantPaginationModelImplCopyWith<$Res>
implements $FeedConsultantPaginationModelCopyWith<$Res> {
factory _$$FeedConsultantPaginationModelImplCopyWith(
_$FeedConsultantPaginationModelImpl value,
$Res Function(_$FeedConsultantPaginationModelImpl) then) =
__$$FeedConsultantPaginationModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({List<FeedConsultantModel> data, Links links, Meta meta});
@override
$LinksCopyWith<$Res> get links;
@override
$MetaCopyWith<$Res> get meta;
}
/// @nodoc
class __$$FeedConsultantPaginationModelImplCopyWithImpl<$Res>
extends _$FeedConsultantPaginationModelCopyWithImpl<$Res,
_$FeedConsultantPaginationModelImpl>
implements _$$FeedConsultantPaginationModelImplCopyWith<$Res> {
__$$FeedConsultantPaginationModelImplCopyWithImpl(
_$FeedConsultantPaginationModelImpl _value,
$Res Function(_$FeedConsultantPaginationModelImpl) _then)
: super(_value, _then);
/// Create a copy of FeedConsultantPaginationModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? data = null,
Object? links = null,
Object? meta = null,
}) {
return _then(_$FeedConsultantPaginationModelImpl(
data: null == data
? _value._data
: data // ignore: cast_nullable_to_non_nullable
as List<FeedConsultantModel>,
links: null == links
? _value.links
: links // ignore: cast_nullable_to_non_nullable
as Links,
meta: null == meta
? _value.meta
: meta // ignore: cast_nullable_to_non_nullable
as Meta,
));
}
}
/// @nodoc
@JsonSerializable()
class _$FeedConsultantPaginationModelImpl
implements _FeedConsultantPaginationModel {
const _$FeedConsultantPaginationModelImpl(
{required final List<FeedConsultantModel> data,
required this.links,
required this.meta})
: _data = data;
factory _$FeedConsultantPaginationModelImpl.fromJson(
Map<String, dynamic> json) =>
_$$FeedConsultantPaginationModelImplFromJson(json);
final List<FeedConsultantModel> _data;
@override
List<FeedConsultantModel> get data {
if (_data is EqualUnmodifiableListView) return _data;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_data);
}
@override
final Links links;
@override
final Meta meta;
@override
String toString() {
return 'FeedConsultantPaginationModel(data: $data, links: $links, meta: $meta)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$FeedConsultantPaginationModelImpl &&
const DeepCollectionEquality().equals(other._data, _data) &&
(identical(other.links, links) || other.links == links) &&
(identical(other.meta, meta) || other.meta == meta));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType, const DeepCollectionEquality().hash(_data), links, meta);
/// Create a copy of FeedConsultantPaginationModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$FeedConsultantPaginationModelImplCopyWith<
_$FeedConsultantPaginationModelImpl>
get copyWith => __$$FeedConsultantPaginationModelImplCopyWithImpl<
_$FeedConsultantPaginationModelImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$FeedConsultantPaginationModelImplToJson(
this,
);
}
}
abstract class _FeedConsultantPaginationModel
implements FeedConsultantPaginationModel {
const factory _FeedConsultantPaginationModel(
{required final List<FeedConsultantModel> data,
required final Links links,
required final Meta meta}) = _$FeedConsultantPaginationModelImpl;
factory _FeedConsultantPaginationModel.fromJson(Map<String, dynamic> json) =
_$FeedConsultantPaginationModelImpl.fromJson;
@override
List<FeedConsultantModel> get data;
@override
Links get links;
@override
Meta get meta;
/// Create a copy of FeedConsultantPaginationModel
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$FeedConsultantPaginationModelImplCopyWith<
_$FeedConsultantPaginationModelImpl>
get copyWith => throw _privateConstructorUsedError;
}
FeedConsultantModel _$FeedConsultantModelFromJson(Map<String, dynamic> json) {
return _FeedConsultantModel.fromJson(json);
}
/// @nodoc
mixin _$FeedConsultantModel {
String get slug => throw _privateConstructorUsedError;
String get name => throw _privateConstructorUsedError;
@JsonKey(name: 'rating_place')
int get ratingPlace => throw _privateConstructorUsedError;
@JsonKey(name: 'profile_photo_url')
String get photo => throw _privateConstructorUsedError;
List<BadgeModel> get badges => throw _privateConstructorUsedError;
/// Serializes this FeedConsultantModel to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of FeedConsultantModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$FeedConsultantModelCopyWith<FeedConsultantModel> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $FeedConsultantModelCopyWith<$Res> {
factory $FeedConsultantModelCopyWith(
FeedConsultantModel value, $Res Function(FeedConsultantModel) then) =
_$FeedConsultantModelCopyWithImpl<$Res, FeedConsultantModel>;
@useResult
$Res call(
{String slug,
String name,
@JsonKey(name: 'rating_place') int ratingPlace,
@JsonKey(name: 'profile_photo_url') String photo,
List<BadgeModel> badges});
}
/// @nodoc
class _$FeedConsultantModelCopyWithImpl<$Res, $Val extends FeedConsultantModel>
implements $FeedConsultantModelCopyWith<$Res> {
_$FeedConsultantModelCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of FeedConsultantModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? slug = null,
Object? name = null,
Object? ratingPlace = null,
Object? photo = null,
Object? badges = null,
}) {
return _then(_value.copyWith(
slug: null == slug
? _value.slug
: slug // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
ratingPlace: null == ratingPlace
? _value.ratingPlace
: ratingPlace // ignore: cast_nullable_to_non_nullable
as int,
photo: null == photo
? _value.photo
: photo // ignore: cast_nullable_to_non_nullable
as String,
badges: null == badges
? _value.badges
: badges // ignore: cast_nullable_to_non_nullable
as List<BadgeModel>,
) as $Val);
}
}
/// @nodoc
abstract class _$$FeedConsultantModelImplCopyWith<$Res>
implements $FeedConsultantModelCopyWith<$Res> {
factory _$$FeedConsultantModelImplCopyWith(_$FeedConsultantModelImpl value,
$Res Function(_$FeedConsultantModelImpl) then) =
__$$FeedConsultantModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{String slug,
String name,
@JsonKey(name: 'rating_place') int ratingPlace,
@JsonKey(name: 'profile_photo_url') String photo,
List<BadgeModel> badges});
}
/// @nodoc
class __$$FeedConsultantModelImplCopyWithImpl<$Res>
extends _$FeedConsultantModelCopyWithImpl<$Res, _$FeedConsultantModelImpl>
implements _$$FeedConsultantModelImplCopyWith<$Res> {
__$$FeedConsultantModelImplCopyWithImpl(_$FeedConsultantModelImpl _value,
$Res Function(_$FeedConsultantModelImpl) _then)
: super(_value, _then);
/// Create a copy of FeedConsultantModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? slug = null,
Object? name = null,
Object? ratingPlace = null,
Object? photo = null,
Object? badges = null,
}) {
return _then(_$FeedConsultantModelImpl(
slug: null == slug
? _value.slug
: slug // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
ratingPlace: null == ratingPlace
? _value.ratingPlace
: ratingPlace // ignore: cast_nullable_to_non_nullable
as int,
photo: null == photo
? _value.photo
: photo // ignore: cast_nullable_to_non_nullable
as String,
badges: null == badges
? _value._badges
: badges // ignore: cast_nullable_to_non_nullable
as List<BadgeModel>,
));
}
}
/// @nodoc
@JsonSerializable()
class _$FeedConsultantModelImpl implements _FeedConsultantModel {
const _$FeedConsultantModelImpl(
{required this.slug,
required this.name,
@JsonKey(name: 'rating_place') required this.ratingPlace,
@JsonKey(name: 'profile_photo_url') required this.photo,
required final List<BadgeModel> badges})
: _badges = badges;
factory _$FeedConsultantModelImpl.fromJson(Map<String, dynamic> json) =>
_$$FeedConsultantModelImplFromJson(json);
@override
final String slug;
@override
final String name;
@override
@JsonKey(name: 'rating_place')
final int ratingPlace;
@override
@JsonKey(name: 'profile_photo_url')
final String photo;
final List<BadgeModel> _badges;
@override
List<BadgeModel> get badges {
if (_badges is EqualUnmodifiableListView) return _badges;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_badges);
}
@override
String toString() {
return 'FeedConsultantModel(slug: $slug, name: $name, ratingPlace: $ratingPlace, photo: $photo, badges: $badges)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$FeedConsultantModelImpl &&
(identical(other.slug, slug) || other.slug == slug) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.ratingPlace, ratingPlace) ||
other.ratingPlace == ratingPlace) &&
(identical(other.photo, photo) || other.photo == photo) &&
const DeepCollectionEquality().equals(other._badges, _badges));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, slug, name, ratingPlace, photo,
const DeepCollectionEquality().hash(_badges));
/// Create a copy of FeedConsultantModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$FeedConsultantModelImplCopyWith<_$FeedConsultantModelImpl> get copyWith =>
__$$FeedConsultantModelImplCopyWithImpl<_$FeedConsultantModelImpl>(
this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$FeedConsultantModelImplToJson(
this,
);
}
}
abstract class _FeedConsultantModel implements FeedConsultantModel {
const factory _FeedConsultantModel(
{required final String slug,
required final String name,
@JsonKey(name: 'rating_place') required final int ratingPlace,
@JsonKey(name: 'profile_photo_url') required final String photo,
required final List<BadgeModel> badges}) = _$FeedConsultantModelImpl;
factory _FeedConsultantModel.fromJson(Map<String, dynamic> json) =
_$FeedConsultantModelImpl.fromJson;
@override
String get slug;
@override
String get name;
@override
@JsonKey(name: 'rating_place')
int get ratingPlace;
@override
@JsonKey(name: 'profile_photo_url')
String get photo;
@override
List<BadgeModel> get badges;
/// Create a copy of FeedConsultantModel
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$FeedConsultantModelImplCopyWith<_$FeedConsultantModelImpl> get copyWith =>
throw _privateConstructorUsedError;
}