// 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 'integer_model.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#custom-getters-and-methods'); IntegerModel _$IntegerModelFromJson(Map json) { return _IntegerModel.fromJson(json); } /// @nodoc mixin _$IntegerModel { int get value => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $IntegerModelCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $IntegerModelCopyWith<$Res> { factory $IntegerModelCopyWith( IntegerModel value, $Res Function(IntegerModel) then) = _$IntegerModelCopyWithImpl<$Res, IntegerModel>; @useResult $Res call({int value}); } /// @nodoc class _$IntegerModelCopyWithImpl<$Res, $Val extends IntegerModel> implements $IntegerModelCopyWith<$Res> { _$IntegerModelCopyWithImpl(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? value = null, }) { return _then(_value.copyWith( value: null == value ? _value.value : value // ignore: cast_nullable_to_non_nullable as int, ) as $Val); } } /// @nodoc abstract class _$$_IntegerModelCopyWith<$Res> implements $IntegerModelCopyWith<$Res> { factory _$$_IntegerModelCopyWith( _$_IntegerModel value, $Res Function(_$_IntegerModel) then) = __$$_IntegerModelCopyWithImpl<$Res>; @override @useResult $Res call({int value}); } /// @nodoc class __$$_IntegerModelCopyWithImpl<$Res> extends _$IntegerModelCopyWithImpl<$Res, _$_IntegerModel> implements _$$_IntegerModelCopyWith<$Res> { __$$_IntegerModelCopyWithImpl( _$_IntegerModel _value, $Res Function(_$_IntegerModel) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? value = null, }) { return _then(_$_IntegerModel( value: null == value ? _value.value : value // ignore: cast_nullable_to_non_nullable as int, )); } } /// @nodoc @JsonSerializable() class _$_IntegerModel implements _IntegerModel { const _$_IntegerModel({required this.value}); factory _$_IntegerModel.fromJson(Map json) => _$$_IntegerModelFromJson(json); @override final int value; @override String toString() { return 'IntegerModel(value: $value)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$_IntegerModel && (identical(other.value, value) || other.value == value)); } @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, value); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$_IntegerModelCopyWith<_$_IntegerModel> get copyWith => __$$_IntegerModelCopyWithImpl<_$_IntegerModel>(this, _$identity); @override Map toJson() { return _$$_IntegerModelToJson( this, ); } } abstract class _IntegerModel implements IntegerModel { const factory _IntegerModel({required final int value}) = _$_IntegerModel; factory _IntegerModel.fromJson(Map json) = _$_IntegerModel.fromJson; @override int get value; @override @JsonKey(ignore: true) _$$_IntegerModelCopyWith<_$_IntegerModel> get copyWith => throw _privateConstructorUsedError; }