274 lines
8.3 KiB
Dart
274 lines
8.3 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 'news.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');
|
||
|
|
||
|
News _$NewsFromJson(Map<String, dynamic> json) {
|
||
|
return _News.fromJson(json);
|
||
|
}
|
||
|
|
||
|
/// @nodoc
|
||
|
mixin _$News {
|
||
|
String? get title => throw _privateConstructorUsedError;
|
||
|
TeaserImage? get teaserImage => throw _privateConstructorUsedError;
|
||
|
TeaserImage? get brandingImage => throw _privateConstructorUsedError;
|
||
|
String? get date => throw _privateConstructorUsedError;
|
||
|
String? get type => throw _privateConstructorUsedError;
|
||
|
|
||
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||
|
@JsonKey(ignore: true)
|
||
|
$NewsCopyWith<News> get copyWith => throw _privateConstructorUsedError;
|
||
|
}
|
||
|
|
||
|
/// @nodoc
|
||
|
abstract class $NewsCopyWith<$Res> {
|
||
|
factory $NewsCopyWith(News value, $Res Function(News) then) =
|
||
|
_$NewsCopyWithImpl<$Res, News>;
|
||
|
@useResult
|
||
|
$Res call(
|
||
|
{String? title,
|
||
|
TeaserImage? teaserImage,
|
||
|
TeaserImage? brandingImage,
|
||
|
String? date,
|
||
|
String? type});
|
||
|
|
||
|
$TeaserImageCopyWith<$Res>? get teaserImage;
|
||
|
$TeaserImageCopyWith<$Res>? get brandingImage;
|
||
|
}
|
||
|
|
||
|
/// @nodoc
|
||
|
class _$NewsCopyWithImpl<$Res, $Val extends News>
|
||
|
implements $NewsCopyWith<$Res> {
|
||
|
_$NewsCopyWithImpl(this._value, this._then);
|
||
|
|
||
|
// ignore: unused_field
|
||
|
final $Val _value;
|
||
|
// ignore: unused_field
|
||
|
final $Res Function($Val) _then;
|
||
|
|
||
|
@pragma('vm:prefer-inline')
|
||
|
@override
|
||
|
$Res call({
|
||
|
Object? title = freezed,
|
||
|
Object? teaserImage = freezed,
|
||
|
Object? brandingImage = freezed,
|
||
|
Object? date = freezed,
|
||
|
Object? type = freezed,
|
||
|
}) {
|
||
|
return _then(_value.copyWith(
|
||
|
title: freezed == title
|
||
|
? _value.title
|
||
|
: title // ignore: cast_nullable_to_non_nullable
|
||
|
as String?,
|
||
|
teaserImage: freezed == teaserImage
|
||
|
? _value.teaserImage
|
||
|
: teaserImage // ignore: cast_nullable_to_non_nullable
|
||
|
as TeaserImage?,
|
||
|
brandingImage: freezed == brandingImage
|
||
|
? _value.brandingImage
|
||
|
: brandingImage // ignore: cast_nullable_to_non_nullable
|
||
|
as TeaserImage?,
|
||
|
date: freezed == date
|
||
|
? _value.date
|
||
|
: date // ignore: cast_nullable_to_non_nullable
|
||
|
as String?,
|
||
|
type: freezed == type
|
||
|
? _value.type
|
||
|
: type // ignore: cast_nullable_to_non_nullable
|
||
|
as String?,
|
||
|
) as $Val);
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
@pragma('vm:prefer-inline')
|
||
|
$TeaserImageCopyWith<$Res>? get teaserImage {
|
||
|
if (_value.teaserImage == null) {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
return $TeaserImageCopyWith<$Res>(_value.teaserImage!, (value) {
|
||
|
return _then(_value.copyWith(teaserImage: value) as $Val);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
@pragma('vm:prefer-inline')
|
||
|
$TeaserImageCopyWith<$Res>? get brandingImage {
|
||
|
if (_value.brandingImage == null) {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
return $TeaserImageCopyWith<$Res>(_value.brandingImage!, (value) {
|
||
|
return _then(_value.copyWith(brandingImage: value) as $Val);
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// @nodoc
|
||
|
abstract class _$$NewsImplCopyWith<$Res> implements $NewsCopyWith<$Res> {
|
||
|
factory _$$NewsImplCopyWith(
|
||
|
_$NewsImpl value, $Res Function(_$NewsImpl) then) =
|
||
|
__$$NewsImplCopyWithImpl<$Res>;
|
||
|
@override
|
||
|
@useResult
|
||
|
$Res call(
|
||
|
{String? title,
|
||
|
TeaserImage? teaserImage,
|
||
|
TeaserImage? brandingImage,
|
||
|
String? date,
|
||
|
String? type});
|
||
|
|
||
|
@override
|
||
|
$TeaserImageCopyWith<$Res>? get teaserImage;
|
||
|
@override
|
||
|
$TeaserImageCopyWith<$Res>? get brandingImage;
|
||
|
}
|
||
|
|
||
|
/// @nodoc
|
||
|
class __$$NewsImplCopyWithImpl<$Res>
|
||
|
extends _$NewsCopyWithImpl<$Res, _$NewsImpl>
|
||
|
implements _$$NewsImplCopyWith<$Res> {
|
||
|
__$$NewsImplCopyWithImpl(_$NewsImpl _value, $Res Function(_$NewsImpl) _then)
|
||
|
: super(_value, _then);
|
||
|
|
||
|
@pragma('vm:prefer-inline')
|
||
|
@override
|
||
|
$Res call({
|
||
|
Object? title = freezed,
|
||
|
Object? teaserImage = freezed,
|
||
|
Object? brandingImage = freezed,
|
||
|
Object? date = freezed,
|
||
|
Object? type = freezed,
|
||
|
}) {
|
||
|
return _then(_$NewsImpl(
|
||
|
title: freezed == title
|
||
|
? _value.title
|
||
|
: title // ignore: cast_nullable_to_non_nullable
|
||
|
as String?,
|
||
|
teaserImage: freezed == teaserImage
|
||
|
? _value.teaserImage
|
||
|
: teaserImage // ignore: cast_nullable_to_non_nullable
|
||
|
as TeaserImage?,
|
||
|
brandingImage: freezed == brandingImage
|
||
|
? _value.brandingImage
|
||
|
: brandingImage // ignore: cast_nullable_to_non_nullable
|
||
|
as TeaserImage?,
|
||
|
date: freezed == date
|
||
|
? _value.date
|
||
|
: date // 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 _$NewsImpl with DiagnosticableTreeMixin implements _News {
|
||
|
const _$NewsImpl(
|
||
|
{this.title, this.teaserImage, this.brandingImage, this.date, this.type});
|
||
|
|
||
|
factory _$NewsImpl.fromJson(Map<String, dynamic> json) =>
|
||
|
_$$NewsImplFromJson(json);
|
||
|
|
||
|
@override
|
||
|
final String? title;
|
||
|
@override
|
||
|
final TeaserImage? teaserImage;
|
||
|
@override
|
||
|
final TeaserImage? brandingImage;
|
||
|
@override
|
||
|
final String? date;
|
||
|
@override
|
||
|
final String? type;
|
||
|
|
||
|
@override
|
||
|
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
|
||
|
return 'News(title: $title, teaserImage: $teaserImage, brandingImage: $brandingImage, date: $date, type: $type)';
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
|
||
|
super.debugFillProperties(properties);
|
||
|
properties
|
||
|
..add(DiagnosticsProperty('type', 'News'))
|
||
|
..add(DiagnosticsProperty('title', title))
|
||
|
..add(DiagnosticsProperty('teaserImage', teaserImage))
|
||
|
..add(DiagnosticsProperty('brandingImage', brandingImage))
|
||
|
..add(DiagnosticsProperty('date', date))
|
||
|
..add(DiagnosticsProperty('type', type));
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
bool operator ==(Object other) {
|
||
|
return identical(this, other) ||
|
||
|
(other.runtimeType == runtimeType &&
|
||
|
other is _$NewsImpl &&
|
||
|
(identical(other.title, title) || other.title == title) &&
|
||
|
(identical(other.teaserImage, teaserImage) ||
|
||
|
other.teaserImage == teaserImage) &&
|
||
|
(identical(other.brandingImage, brandingImage) ||
|
||
|
other.brandingImage == brandingImage) &&
|
||
|
(identical(other.date, date) || other.date == date) &&
|
||
|
(identical(other.type, type) || other.type == type));
|
||
|
}
|
||
|
|
||
|
@JsonKey(ignore: true)
|
||
|
@override
|
||
|
int get hashCode =>
|
||
|
Object.hash(runtimeType, title, teaserImage, brandingImage, date, type);
|
||
|
|
||
|
@JsonKey(ignore: true)
|
||
|
@override
|
||
|
@pragma('vm:prefer-inline')
|
||
|
_$$NewsImplCopyWith<_$NewsImpl> get copyWith =>
|
||
|
__$$NewsImplCopyWithImpl<_$NewsImpl>(this, _$identity);
|
||
|
|
||
|
@override
|
||
|
Map<String, dynamic> toJson() {
|
||
|
return _$$NewsImplToJson(
|
||
|
this,
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
abstract class _News implements News {
|
||
|
const factory _News(
|
||
|
{final String? title,
|
||
|
final TeaserImage? teaserImage,
|
||
|
final TeaserImage? brandingImage,
|
||
|
final String? date,
|
||
|
final String? type}) = _$NewsImpl;
|
||
|
|
||
|
factory _News.fromJson(Map<String, dynamic> json) = _$NewsImpl.fromJson;
|
||
|
|
||
|
@override
|
||
|
String? get title;
|
||
|
@override
|
||
|
TeaserImage? get teaserImage;
|
||
|
@override
|
||
|
TeaserImage? get brandingImage;
|
||
|
@override
|
||
|
String? get date;
|
||
|
@override
|
||
|
String? get type;
|
||
|
@override
|
||
|
@JsonKey(ignore: true)
|
||
|
_$$NewsImplCopyWith<_$NewsImpl> get copyWith =>
|
||
|
throw _privateConstructorUsedError;
|
||
|
}
|