// 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 'project.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', ); Project _$ProjectFromJson(Map json) { return _Project.fromJson(json); } /// @nodoc mixin _$Project { int get id => throw _privateConstructorUsedError; String get name => throw _privateConstructorUsedError; int get colorValue => throw _privateConstructorUsedError; String? get description => throw _privateConstructorUsedError; DateTime? get archivedAt => throw _privateConstructorUsedError; DateTime get createdAt => throw _privateConstructorUsedError; /// Serializes this Project to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of Project /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ProjectCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ProjectCopyWith<$Res> { factory $ProjectCopyWith(Project value, $Res Function(Project) then) = _$ProjectCopyWithImpl<$Res, Project>; @useResult $Res call({ int id, String name, int colorValue, String? description, DateTime? archivedAt, DateTime createdAt, }); } /// @nodoc class _$ProjectCopyWithImpl<$Res, $Val extends Project> implements $ProjectCopyWith<$Res> { _$ProjectCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of Project /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? name = null, Object? colorValue = null, Object? description = freezed, Object? archivedAt = freezed, Object? createdAt = null, }) { return _then( _value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, colorValue: null == colorValue ? _value.colorValue : colorValue // ignore: cast_nullable_to_non_nullable as int, description: freezed == description ? _value.description : description // ignore: cast_nullable_to_non_nullable as String?, archivedAt: freezed == archivedAt ? _value.archivedAt : archivedAt // ignore: cast_nullable_to_non_nullable as DateTime?, createdAt: null == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime, ) as $Val, ); } } /// @nodoc abstract class _$$ProjectImplCopyWith<$Res> implements $ProjectCopyWith<$Res> { factory _$$ProjectImplCopyWith( _$ProjectImpl value, $Res Function(_$ProjectImpl) then, ) = __$$ProjectImplCopyWithImpl<$Res>; @override @useResult $Res call({ int id, String name, int colorValue, String? description, DateTime? archivedAt, DateTime createdAt, }); } /// @nodoc class __$$ProjectImplCopyWithImpl<$Res> extends _$ProjectCopyWithImpl<$Res, _$ProjectImpl> implements _$$ProjectImplCopyWith<$Res> { __$$ProjectImplCopyWithImpl( _$ProjectImpl _value, $Res Function(_$ProjectImpl) _then, ) : super(_value, _then); /// Create a copy of Project /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? name = null, Object? colorValue = null, Object? description = freezed, Object? archivedAt = freezed, Object? createdAt = null, }) { return _then( _$ProjectImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, colorValue: null == colorValue ? _value.colorValue : colorValue // ignore: cast_nullable_to_non_nullable as int, description: freezed == description ? _value.description : description // ignore: cast_nullable_to_non_nullable as String?, archivedAt: freezed == archivedAt ? _value.archivedAt : archivedAt // ignore: cast_nullable_to_non_nullable as DateTime?, createdAt: null == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime, ), ); } } /// @nodoc @JsonSerializable() class _$ProjectImpl implements _Project { const _$ProjectImpl({ required this.id, required this.name, required this.colorValue, this.description, this.archivedAt, required this.createdAt, }); factory _$ProjectImpl.fromJson(Map json) => _$$ProjectImplFromJson(json); @override final int id; @override final String name; @override final int colorValue; @override final String? description; @override final DateTime? archivedAt; @override final DateTime createdAt; @override String toString() { return 'Project(id: $id, name: $name, colorValue: $colorValue, description: $description, archivedAt: $archivedAt, createdAt: $createdAt)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ProjectImpl && (identical(other.id, id) || other.id == id) && (identical(other.name, name) || other.name == name) && (identical(other.colorValue, colorValue) || other.colorValue == colorValue) && (identical(other.description, description) || other.description == description) && (identical(other.archivedAt, archivedAt) || other.archivedAt == archivedAt) && (identical(other.createdAt, createdAt) || other.createdAt == createdAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, id, name, colorValue, description, archivedAt, createdAt, ); /// Create a copy of Project /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ProjectImplCopyWith<_$ProjectImpl> get copyWith => __$$ProjectImplCopyWithImpl<_$ProjectImpl>(this, _$identity); @override Map toJson() { return _$$ProjectImplToJson(this); } } abstract class _Project implements Project { const factory _Project({ required final int id, required final String name, required final int colorValue, final String? description, final DateTime? archivedAt, required final DateTime createdAt, }) = _$ProjectImpl; factory _Project.fromJson(Map json) = _$ProjectImpl.fromJson; @override int get id; @override String get name; @override int get colorValue; @override String? get description; @override DateTime? get archivedAt; @override DateTime get createdAt; /// Create a copy of Project /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ProjectImplCopyWith<_$ProjectImpl> get copyWith => throw _privateConstructorUsedError; }