Skip to content

Commit

Permalink
chore: codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Feb 25, 2024
1 parent 5b64da7 commit 8da216b
Show file tree
Hide file tree
Showing 7 changed files with 225 additions and 125 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// 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
// 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 'global_config_store.dart';

Expand All @@ -12,7 +12,7 @@ part of 'global_config_store.dart';
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#custom-getters-and-methods');
'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');

GlobalConfigNullable _$GlobalConfigNullableFromJson(Map<String, dynamic> json) {
return _GlobalConfigNullable.fromJson(json);
Expand All @@ -26,19 +26,25 @@ mixin _$GlobalConfigNullable {

Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$GlobalConfigNullableCopyWith<GlobalConfigNullable> get copyWith => throw _privateConstructorUsedError;
$GlobalConfigNullableCopyWith<GlobalConfigNullable> get copyWith =>
throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $GlobalConfigNullableCopyWith<$Res> {
factory $GlobalConfigNullableCopyWith(GlobalConfigNullable value, $Res Function(GlobalConfigNullable) then) =
factory $GlobalConfigNullableCopyWith(GlobalConfigNullable value,
$Res Function(GlobalConfigNullable) then) =
_$GlobalConfigNullableCopyWithImpl<$Res, GlobalConfigNullable>;
@useResult
$Res call({bool? isolationMode, bool? enableReportSaver, String? goldenDiffGitRepo});
$Res call(
{bool? isolationMode,
bool? enableReportSaver,
String? goldenDiffGitRepo});
}

/// @nodoc
class _$GlobalConfigNullableCopyWithImpl<$Res, $Val extends GlobalConfigNullable>
class _$GlobalConfigNullableCopyWithImpl<$Res,
$Val extends GlobalConfigNullable>
implements $GlobalConfigNullableCopyWith<$Res> {
_$GlobalConfigNullableCopyWithImpl(this._value, this._then);

Expand Down Expand Up @@ -72,19 +78,25 @@ class _$GlobalConfigNullableCopyWithImpl<$Res, $Val extends GlobalConfigNullable
}

/// @nodoc
abstract class _$$_GlobalConfigNullableCopyWith<$Res> implements $GlobalConfigNullableCopyWith<$Res> {
factory _$$_GlobalConfigNullableCopyWith(_$_GlobalConfigNullable value, $Res Function(_$_GlobalConfigNullable) then) =
__$$_GlobalConfigNullableCopyWithImpl<$Res>;
abstract class _$$GlobalConfigNullableImplCopyWith<$Res>
implements $GlobalConfigNullableCopyWith<$Res> {
factory _$$GlobalConfigNullableImplCopyWith(_$GlobalConfigNullableImpl value,
$Res Function(_$GlobalConfigNullableImpl) then) =
__$$GlobalConfigNullableImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({bool? isolationMode, bool? enableReportSaver, String? goldenDiffGitRepo});
$Res call(
{bool? isolationMode,
bool? enableReportSaver,
String? goldenDiffGitRepo});
}

/// @nodoc
class __$$_GlobalConfigNullableCopyWithImpl<$Res>
extends _$GlobalConfigNullableCopyWithImpl<$Res, _$_GlobalConfigNullable>
implements _$$_GlobalConfigNullableCopyWith<$Res> {
__$$_GlobalConfigNullableCopyWithImpl(_$_GlobalConfigNullable _value, $Res Function(_$_GlobalConfigNullable) _then)
class __$$GlobalConfigNullableImplCopyWithImpl<$Res>
extends _$GlobalConfigNullableCopyWithImpl<$Res, _$GlobalConfigNullableImpl>
implements _$$GlobalConfigNullableImplCopyWith<$Res> {
__$$GlobalConfigNullableImplCopyWithImpl(_$GlobalConfigNullableImpl _value,
$Res Function(_$GlobalConfigNullableImpl) _then)
: super(_value, _then);

@pragma('vm:prefer-inline')
Expand All @@ -94,7 +106,7 @@ class __$$_GlobalConfigNullableCopyWithImpl<$Res>
Object? enableReportSaver = freezed,
Object? goldenDiffGitRepo = freezed,
}) {
return _then(_$_GlobalConfigNullable(
return _then(_$GlobalConfigNullableImpl(
isolationMode: freezed == isolationMode
? _value.isolationMode
: isolationMode // ignore: cast_nullable_to_non_nullable
Expand All @@ -113,10 +125,12 @@ class __$$_GlobalConfigNullableCopyWithImpl<$Res>

/// @nodoc
@JsonSerializable()
class _$_GlobalConfigNullable implements _GlobalConfigNullable {
_$_GlobalConfigNullable({this.isolationMode, this.enableReportSaver, this.goldenDiffGitRepo});
class _$GlobalConfigNullableImpl implements _GlobalConfigNullable {
_$GlobalConfigNullableImpl(
{this.isolationMode, this.enableReportSaver, this.goldenDiffGitRepo});

factory _$_GlobalConfigNullable.fromJson(Map<String, dynamic> json) => _$$_GlobalConfigNullableFromJson(json);
factory _$GlobalConfigNullableImpl.fromJson(Map<String, dynamic> json) =>
_$$GlobalConfigNullableImplFromJson(json);

@override
final bool? isolationMode;
Expand All @@ -131,28 +145,34 @@ class _$_GlobalConfigNullable implements _GlobalConfigNullable {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$_GlobalConfigNullable &&
(identical(other.isolationMode, isolationMode) || other.isolationMode == isolationMode) &&
(identical(other.enableReportSaver, enableReportSaver) || other.enableReportSaver == enableReportSaver) &&
(identical(other.goldenDiffGitRepo, goldenDiffGitRepo) || other.goldenDiffGitRepo == goldenDiffGitRepo));
other is _$GlobalConfigNullableImpl &&
(identical(other.isolationMode, isolationMode) ||
other.isolationMode == isolationMode) &&
(identical(other.enableReportSaver, enableReportSaver) ||
other.enableReportSaver == enableReportSaver) &&
(identical(other.goldenDiffGitRepo, goldenDiffGitRepo) ||
other.goldenDiffGitRepo == goldenDiffGitRepo));
}

@JsonKey(ignore: true)
@override
int get hashCode => Object.hash(runtimeType, isolationMode, enableReportSaver, goldenDiffGitRepo);
int get hashCode => Object.hash(
runtimeType, isolationMode, enableReportSaver, goldenDiffGitRepo);

@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$_GlobalConfigNullableCopyWith<_$_GlobalConfigNullable> get copyWith =>
__$$_GlobalConfigNullableCopyWithImpl<_$_GlobalConfigNullable>(this, _$identity);
_$$GlobalConfigNullableImplCopyWith<_$GlobalConfigNullableImpl>
get copyWith =>
__$$GlobalConfigNullableImplCopyWithImpl<_$GlobalConfigNullableImpl>(
this, _$identity);

@override
Map<String, dynamic> toJson() {
return _$$_GlobalConfigNullableToJson(
return _$$GlobalConfigNullableImplToJson(
this,
);
}
Expand All @@ -162,9 +182,10 @@ abstract class _GlobalConfigNullable implements GlobalConfigNullable {
factory _GlobalConfigNullable(
{final bool? isolationMode,
final bool? enableReportSaver,
final String? goldenDiffGitRepo}) = _$_GlobalConfigNullable;
final String? goldenDiffGitRepo}) = _$GlobalConfigNullableImpl;

factory _GlobalConfigNullable.fromJson(Map<String, dynamic> json) = _$_GlobalConfigNullable.fromJson;
factory _GlobalConfigNullable.fromJson(Map<String, dynamic> json) =
_$GlobalConfigNullableImpl.fromJson;

@override
bool? get isolationMode;
Expand All @@ -174,5 +195,6 @@ abstract class _GlobalConfigNullable implements GlobalConfigNullable {
String? get goldenDiffGitRepo;
@override
@JsonKey(ignore: true)
_$$_GlobalConfigNullableCopyWith<_$_GlobalConfigNullable> get copyWith => throw _privateConstructorUsedError;
_$$GlobalConfigNullableImplCopyWith<_$GlobalConfigNullableImpl>
get copyWith => throw _privateConstructorUsedError;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8da216b

Please sign in to comment.