| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- // 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 'failure.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',
- );
- Failure _$FailureFromJson(Map<String, dynamic> json) {
- return _Failure.fromJson(json);
- }
- /// @nodoc
- mixin _$Failure {
- String? get code => throw _privateConstructorUsedError;
- String? get message => throw _privateConstructorUsedError;
- /// Serializes this Failure to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of Failure
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $FailureCopyWith<Failure> get copyWith => throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $FailureCopyWith<$Res> {
- factory $FailureCopyWith(Failure value, $Res Function(Failure) then) =
- _$FailureCopyWithImpl<$Res, Failure>;
- @useResult
- $Res call({String? code, String? message});
- }
- /// @nodoc
- class _$FailureCopyWithImpl<$Res, $Val extends Failure>
- implements $FailureCopyWith<$Res> {
- _$FailureCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of Failure
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? code = freezed, Object? message = freezed}) {
- return _then(
- _value.copyWith(
- code: freezed == code
- ? _value.code
- : code // ignore: cast_nullable_to_non_nullable
- as String?,
- message: freezed == message
- ? _value.message
- : message // ignore: cast_nullable_to_non_nullable
- as String?,
- )
- as $Val,
- );
- }
- }
- /// @nodoc
- abstract class _$$FailureImplCopyWith<$Res> implements $FailureCopyWith<$Res> {
- factory _$$FailureImplCopyWith(
- _$FailureImpl value,
- $Res Function(_$FailureImpl) then,
- ) = __$$FailureImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({String? code, String? message});
- }
- /// @nodoc
- class __$$FailureImplCopyWithImpl<$Res>
- extends _$FailureCopyWithImpl<$Res, _$FailureImpl>
- implements _$$FailureImplCopyWith<$Res> {
- __$$FailureImplCopyWithImpl(
- _$FailureImpl _value,
- $Res Function(_$FailureImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of Failure
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? code = freezed, Object? message = freezed}) {
- return _then(
- _$FailureImpl(
- code: freezed == code
- ? _value.code
- : code // ignore: cast_nullable_to_non_nullable
- as String?,
- message: freezed == message
- ? _value.message
- : message // ignore: cast_nullable_to_non_nullable
- as String?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$FailureImpl with DiagnosticableTreeMixin implements _Failure {
- const _$FailureImpl({this.code, this.message});
- factory _$FailureImpl.fromJson(Map<String, dynamic> json) =>
- _$$FailureImplFromJson(json);
- @override
- final String? code;
- @override
- final String? message;
- @override
- String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
- return 'Failure(code: $code, message: $message)';
- }
- @override
- void debugFillProperties(DiagnosticPropertiesBuilder properties) {
- super.debugFillProperties(properties);
- properties
- ..add(DiagnosticsProperty('type', 'Failure'))
- ..add(DiagnosticsProperty('code', code))
- ..add(DiagnosticsProperty('message', message));
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$FailureImpl &&
- (identical(other.code, code) || other.code == code) &&
- (identical(other.message, message) || other.message == message));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(runtimeType, code, message);
- /// Create a copy of Failure
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$FailureImplCopyWith<_$FailureImpl> get copyWith =>
- __$$FailureImplCopyWithImpl<_$FailureImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$FailureImplToJson(this);
- }
- }
- abstract class _Failure implements Failure {
- const factory _Failure({final String? code, final String? message}) =
- _$FailureImpl;
- factory _Failure.fromJson(Map<String, dynamic> json) = _$FailureImpl.fromJson;
- @override
- String? get code;
- @override
- String? get message;
- /// Create a copy of Failure
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$FailureImplCopyWith<_$FailureImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
|