// 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 'recent_activity.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'); RecentActivity _$RecentActivityFromJson(Map json) { return _RecentActivity.fromJson(json); } /// @nodoc mixin _$RecentActivity { int get id => throw _privateConstructorUsedError; @JsonKey(name: 'activity_type') String get activityType => throw _privateConstructorUsedError; String get description => throw _privateConstructorUsedError; @JsonKey(name: 'user_name') String get userName => throw _privateConstructorUsedError; @JsonKey(name: 'created_at') DateTime get createdAt => throw _privateConstructorUsedError; Map? get metadata => throw _privateConstructorUsedError; /// Serializes this RecentActivity to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of RecentActivity /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $RecentActivityCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $RecentActivityCopyWith<$Res> { factory $RecentActivityCopyWith( RecentActivity value, $Res Function(RecentActivity) then) = _$RecentActivityCopyWithImpl<$Res, RecentActivity>; @useResult $Res call( {int id, @JsonKey(name: 'activity_type') String activityType, String description, @JsonKey(name: 'user_name') String userName, @JsonKey(name: 'created_at') DateTime createdAt, Map? metadata}); } /// @nodoc class _$RecentActivityCopyWithImpl<$Res, $Val extends RecentActivity> implements $RecentActivityCopyWith<$Res> { _$RecentActivityCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of RecentActivity /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? activityType = null, Object? description = null, Object? userName = null, Object? createdAt = null, Object? metadata = freezed, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, activityType: null == activityType ? _value.activityType : activityType // ignore: cast_nullable_to_non_nullable as String, description: null == description ? _value.description : description // ignore: cast_nullable_to_non_nullable as String, userName: null == userName ? _value.userName : userName // ignore: cast_nullable_to_non_nullable as String, createdAt: null == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime, metadata: freezed == metadata ? _value.metadata : metadata // ignore: cast_nullable_to_non_nullable as Map?, ) as $Val); } } /// @nodoc abstract class _$$RecentActivityImplCopyWith<$Res> implements $RecentActivityCopyWith<$Res> { factory _$$RecentActivityImplCopyWith(_$RecentActivityImpl value, $Res Function(_$RecentActivityImpl) then) = __$$RecentActivityImplCopyWithImpl<$Res>; @override @useResult $Res call( {int id, @JsonKey(name: 'activity_type') String activityType, String description, @JsonKey(name: 'user_name') String userName, @JsonKey(name: 'created_at') DateTime createdAt, Map? metadata}); } /// @nodoc class __$$RecentActivityImplCopyWithImpl<$Res> extends _$RecentActivityCopyWithImpl<$Res, _$RecentActivityImpl> implements _$$RecentActivityImplCopyWith<$Res> { __$$RecentActivityImplCopyWithImpl( _$RecentActivityImpl _value, $Res Function(_$RecentActivityImpl) _then) : super(_value, _then); /// Create a copy of RecentActivity /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? activityType = null, Object? description = null, Object? userName = null, Object? createdAt = null, Object? metadata = freezed, }) { return _then(_$RecentActivityImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, activityType: null == activityType ? _value.activityType : activityType // ignore: cast_nullable_to_non_nullable as String, description: null == description ? _value.description : description // ignore: cast_nullable_to_non_nullable as String, userName: null == userName ? _value.userName : userName // ignore: cast_nullable_to_non_nullable as String, createdAt: null == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime, metadata: freezed == metadata ? _value._metadata : metadata // ignore: cast_nullable_to_non_nullable as Map?, )); } } /// @nodoc @JsonSerializable() class _$RecentActivityImpl implements _RecentActivity { const _$RecentActivityImpl( {required this.id, @JsonKey(name: 'activity_type') required this.activityType, required this.description, @JsonKey(name: 'user_name') required this.userName, @JsonKey(name: 'created_at') required this.createdAt, final Map? metadata}) : _metadata = metadata; factory _$RecentActivityImpl.fromJson(Map json) => _$$RecentActivityImplFromJson(json); @override final int id; @override @JsonKey(name: 'activity_type') final String activityType; @override final String description; @override @JsonKey(name: 'user_name') final String userName; @override @JsonKey(name: 'created_at') final DateTime createdAt; final Map? _metadata; @override Map? get metadata { final value = _metadata; if (value == null) return null; if (_metadata is EqualUnmodifiableMapView) return _metadata; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(value); } @override String toString() { return 'RecentActivity(id: $id, activityType: $activityType, description: $description, userName: $userName, createdAt: $createdAt, metadata: $metadata)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$RecentActivityImpl && (identical(other.id, id) || other.id == id) && (identical(other.activityType, activityType) || other.activityType == activityType) && (identical(other.description, description) || other.description == description) && (identical(other.userName, userName) || other.userName == userName) && (identical(other.createdAt, createdAt) || other.createdAt == createdAt) && const DeepCollectionEquality().equals(other._metadata, _metadata)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id, activityType, description, userName, createdAt, const DeepCollectionEquality().hash(_metadata)); /// Create a copy of RecentActivity /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$RecentActivityImplCopyWith<_$RecentActivityImpl> get copyWith => __$$RecentActivityImplCopyWithImpl<_$RecentActivityImpl>( this, _$identity); @override Map toJson() { return _$$RecentActivityImplToJson( this, ); } } abstract class _RecentActivity implements RecentActivity { const factory _RecentActivity( {required final int id, @JsonKey(name: 'activity_type') required final String activityType, required final String description, @JsonKey(name: 'user_name') required final String userName, @JsonKey(name: 'created_at') required final DateTime createdAt, final Map? metadata}) = _$RecentActivityImpl; factory _RecentActivity.fromJson(Map json) = _$RecentActivityImpl.fromJson; @override int get id; @override @JsonKey(name: 'activity_type') String get activityType; @override String get description; @override @JsonKey(name: 'user_name') String get userName; @override @JsonKey(name: 'created_at') DateTime get createdAt; @override Map? get metadata; /// Create a copy of RecentActivity /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$RecentActivityImplCopyWith<_$RecentActivityImpl> get copyWith => throw _privateConstructorUsedError; }