// 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 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 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 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 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 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 toJson() { return _$$FailureImplToJson(this); } } abstract class _Failure implements Failure { const factory _Failure({final String? code, final String? message}) = _$FailureImpl; factory _Failure.fromJson(Map 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; }