// 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 'badge_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#adding-getters-and-methods-to-our-models'); BadgeModel _$BadgeModelFromJson(Map json) { return _BadgeModel.fromJson(json); } /// @nodoc mixin _$BadgeModel { int get id => throw _privateConstructorUsedError; String get title => throw _privateConstructorUsedError; String get description => throw _privateConstructorUsedError; String get image => throw _privateConstructorUsedError; String get type => throw _privateConstructorUsedError; /// Serializes this BadgeModel to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of BadgeModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $BadgeModelCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $BadgeModelCopyWith<$Res> { factory $BadgeModelCopyWith( BadgeModel value, $Res Function(BadgeModel) then) = _$BadgeModelCopyWithImpl<$Res, BadgeModel>; @useResult $Res call( {int id, String title, String description, String image, String type}); } /// @nodoc class _$BadgeModelCopyWithImpl<$Res, $Val extends BadgeModel> implements $BadgeModelCopyWith<$Res> { _$BadgeModelCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of BadgeModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? title = null, Object? description = null, Object? image = null, Object? type = null, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, title: null == title ? _value.title : title // ignore: cast_nullable_to_non_nullable as String, description: null == description ? _value.description : description // ignore: cast_nullable_to_non_nullable as String, image: null == image ? _value.image : image // ignore: cast_nullable_to_non_nullable as String, type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable as String, ) as $Val); } } /// @nodoc abstract class _$$BadgeModelImplCopyWith<$Res> implements $BadgeModelCopyWith<$Res> { factory _$$BadgeModelImplCopyWith( _$BadgeModelImpl value, $Res Function(_$BadgeModelImpl) then) = __$$BadgeModelImplCopyWithImpl<$Res>; @override @useResult $Res call( {int id, String title, String description, String image, String type}); } /// @nodoc class __$$BadgeModelImplCopyWithImpl<$Res> extends _$BadgeModelCopyWithImpl<$Res, _$BadgeModelImpl> implements _$$BadgeModelImplCopyWith<$Res> { __$$BadgeModelImplCopyWithImpl( _$BadgeModelImpl _value, $Res Function(_$BadgeModelImpl) _then) : super(_value, _then); /// Create a copy of BadgeModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? title = null, Object? description = null, Object? image = null, Object? type = null, }) { return _then(_$BadgeModelImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, title: null == title ? _value.title : title // ignore: cast_nullable_to_non_nullable as String, description: null == description ? _value.description : description // ignore: cast_nullable_to_non_nullable as String, image: null == image ? _value.image : image // ignore: cast_nullable_to_non_nullable as String, type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc @JsonSerializable() class _$BadgeModelImpl implements _BadgeModel { const _$BadgeModelImpl( {required this.id, required this.title, required this.description, required this.image, required this.type}); factory _$BadgeModelImpl.fromJson(Map json) => _$$BadgeModelImplFromJson(json); @override final int id; @override final String title; @override final String description; @override final String image; @override final String type; @override String toString() { return 'BadgeModel(id: $id, title: $title, description: $description, image: $image, type: $type)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$BadgeModelImpl && (identical(other.id, id) || other.id == id) && (identical(other.title, title) || other.title == title) && (identical(other.description, description) || other.description == description) && (identical(other.image, image) || other.image == image) && (identical(other.type, type) || other.type == type)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id, title, description, image, type); /// Create a copy of BadgeModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$BadgeModelImplCopyWith<_$BadgeModelImpl> get copyWith => __$$BadgeModelImplCopyWithImpl<_$BadgeModelImpl>(this, _$identity); @override Map toJson() { return _$$BadgeModelImplToJson( this, ); } } abstract class _BadgeModel implements BadgeModel { const factory _BadgeModel( {required final int id, required final String title, required final String description, required final String image, required final String type}) = _$BadgeModelImpl; factory _BadgeModel.fromJson(Map json) = _$BadgeModelImpl.fromJson; @override int get id; @override String get title; @override String get description; @override String get image; @override String get type; /// Create a copy of BadgeModel /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$BadgeModelImplCopyWith<_$BadgeModelImpl> get copyWith => throw _privateConstructorUsedError; }