// GENERATED CODE - DO NOT MODIFY BY HAND // 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 part of 'comment.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 informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); /// @nodoc class _$CommentTearOff { const _$CommentTearOff(); _Comment call( String commentId, String author, ChannelId channelId, String text, int likeCount, String publishedTime, int replyCount, @internal String? continuation, @internal String? clicktrackingParams) { return _Comment( commentId, author, channelId, text, likeCount, publishedTime, replyCount, continuation, clicktrackingParams, ); } } /// @nodoc const $Comment = _$CommentTearOff(); /// @nodoc mixin _$Comment { /// Comment id. String get commentId => throw _privateConstructorUsedError; /// Comment author name. String get author => throw _privateConstructorUsedError; /// Comment author channel id. ChannelId get channelId => throw _privateConstructorUsedError; /// Comment text. String get text => throw _privateConstructorUsedError; /// Comment likes count. int get likeCount => throw _privateConstructorUsedError; /// Published time as string. (For example: "2 years ago") String get publishedTime => throw _privateConstructorUsedError; /// Comment reply count. int get replyCount => throw _privateConstructorUsedError; /// Used internally. /// Shouldn't be used in the code. @internal String? get continuation => throw _privateConstructorUsedError; /// Used internally. /// Shouldn't be used in the code. @internal String? get clicktrackingParams => throw _privateConstructorUsedError; @JsonKey(ignore: true) $CommentCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $CommentCopyWith<$Res> { factory $CommentCopyWith(Comment value, $Res Function(Comment) then) = _$CommentCopyWithImpl<$Res>; $Res call( {String commentId, String author, ChannelId channelId, String text, int likeCount, String publishedTime, int replyCount, @internal String? continuation, @internal String? clicktrackingParams}); $ChannelIdCopyWith<$Res> get channelId; } /// @nodoc class _$CommentCopyWithImpl<$Res> implements $CommentCopyWith<$Res> { _$CommentCopyWithImpl(this._value, this._then); final Comment _value; // ignore: unused_field final $Res Function(Comment) _then; @override $Res call({ Object? commentId = freezed, Object? author = freezed, Object? channelId = freezed, Object? text = freezed, Object? likeCount = freezed, Object? publishedTime = freezed, Object? replyCount = freezed, Object? continuation = freezed, Object? clicktrackingParams = freezed, }) { return _then(_value.copyWith( commentId: commentId == freezed ? _value.commentId : commentId // ignore: cast_nullable_to_non_nullable as String, author: author == freezed ? _value.author : author // ignore: cast_nullable_to_non_nullable as String, channelId: channelId == freezed ? _value.channelId : channelId // ignore: cast_nullable_to_non_nullable as ChannelId, text: text == freezed ? _value.text : text // ignore: cast_nullable_to_non_nullable as String, likeCount: likeCount == freezed ? _value.likeCount : likeCount // ignore: cast_nullable_to_non_nullable as int, publishedTime: publishedTime == freezed ? _value.publishedTime : publishedTime // ignore: cast_nullable_to_non_nullable as String, replyCount: replyCount == freezed ? _value.replyCount : replyCount // ignore: cast_nullable_to_non_nullable as int, continuation: continuation == freezed ? _value.continuation : continuation // ignore: cast_nullable_to_non_nullable as String?, clicktrackingParams: clicktrackingParams == freezed ? _value.clicktrackingParams : clicktrackingParams // ignore: cast_nullable_to_non_nullable as String?, )); } @override $ChannelIdCopyWith<$Res> get channelId { return $ChannelIdCopyWith<$Res>(_value.channelId, (value) { return _then(_value.copyWith(channelId: value)); }); } } /// @nodoc abstract class _$CommentCopyWith<$Res> implements $CommentCopyWith<$Res> { factory _$CommentCopyWith(_Comment value, $Res Function(_Comment) then) = __$CommentCopyWithImpl<$Res>; @override $Res call( {String commentId, String author, ChannelId channelId, String text, int likeCount, String publishedTime, int replyCount, @internal String? continuation, @internal String? clicktrackingParams}); @override $ChannelIdCopyWith<$Res> get channelId; } /// @nodoc class __$CommentCopyWithImpl<$Res> extends _$CommentCopyWithImpl<$Res> implements _$CommentCopyWith<$Res> { __$CommentCopyWithImpl(_Comment _value, $Res Function(_Comment) _then) : super(_value, (v) => _then(v as _Comment)); @override _Comment get _value => super._value as _Comment; @override $Res call({ Object? commentId = freezed, Object? author = freezed, Object? channelId = freezed, Object? text = freezed, Object? likeCount = freezed, Object? publishedTime = freezed, Object? replyCount = freezed, Object? continuation = freezed, Object? clicktrackingParams = freezed, }) { return _then(_Comment( commentId == freezed ? _value.commentId : commentId // ignore: cast_nullable_to_non_nullable as String, author == freezed ? _value.author : author // ignore: cast_nullable_to_non_nullable as String, channelId == freezed ? _value.channelId : channelId // ignore: cast_nullable_to_non_nullable as ChannelId, text == freezed ? _value.text : text // ignore: cast_nullable_to_non_nullable as String, likeCount == freezed ? _value.likeCount : likeCount // ignore: cast_nullable_to_non_nullable as int, publishedTime == freezed ? _value.publishedTime : publishedTime // ignore: cast_nullable_to_non_nullable as String, replyCount == freezed ? _value.replyCount : replyCount // ignore: cast_nullable_to_non_nullable as int, continuation == freezed ? _value.continuation : continuation // ignore: cast_nullable_to_non_nullable as String?, clicktrackingParams == freezed ? _value.clicktrackingParams : clicktrackingParams // ignore: cast_nullable_to_non_nullable as String?, )); } } /// @nodoc class _$_Comment implements _Comment { const _$_Comment( this.commentId, this.author, this.channelId, this.text, this.likeCount, this.publishedTime, this.replyCount, @internal this.continuation, @internal this.clicktrackingParams); @override /// Comment id. final String commentId; @override /// Comment author name. final String author; @override /// Comment author channel id. final ChannelId channelId; @override /// Comment text. final String text; @override /// Comment likes count. final int likeCount; @override /// Published time as string. (For example: "2 years ago") final String publishedTime; @override /// Comment reply count. final int replyCount; @override /// Used internally. /// Shouldn't be used in the code. @internal final String? continuation; @override /// Used internally. /// Shouldn't be used in the code. @internal final String? clicktrackingParams; @override String toString() { return 'Comment(commentId: $commentId, author: $author, channelId: $channelId, text: $text, likeCount: $likeCount, publishedTime: $publishedTime, replyCount: $replyCount, continuation: $continuation, clicktrackingParams: $clicktrackingParams)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other is _Comment && (identical(other.commentId, commentId) || const DeepCollectionEquality() .equals(other.commentId, commentId)) && (identical(other.author, author) || const DeepCollectionEquality().equals(other.author, author)) && (identical(other.channelId, channelId) || const DeepCollectionEquality() .equals(other.channelId, channelId)) && (identical(other.text, text) || const DeepCollectionEquality().equals(other.text, text)) && (identical(other.likeCount, likeCount) || const DeepCollectionEquality() .equals(other.likeCount, likeCount)) && (identical(other.publishedTime, publishedTime) || const DeepCollectionEquality() .equals(other.publishedTime, publishedTime)) && (identical(other.replyCount, replyCount) || const DeepCollectionEquality() .equals(other.replyCount, replyCount)) && (identical(other.continuation, continuation) || const DeepCollectionEquality() .equals(other.continuation, continuation)) && (identical(other.clicktrackingParams, clicktrackingParams) || const DeepCollectionEquality() .equals(other.clicktrackingParams, clicktrackingParams))); } @override int get hashCode => runtimeType.hashCode ^ const DeepCollectionEquality().hash(commentId) ^ const DeepCollectionEquality().hash(author) ^ const DeepCollectionEquality().hash(channelId) ^ const DeepCollectionEquality().hash(text) ^ const DeepCollectionEquality().hash(likeCount) ^ const DeepCollectionEquality().hash(publishedTime) ^ const DeepCollectionEquality().hash(replyCount) ^ const DeepCollectionEquality().hash(continuation) ^ const DeepCollectionEquality().hash(clicktrackingParams); @JsonKey(ignore: true) @override _$CommentCopyWith<_Comment> get copyWith => __$CommentCopyWithImpl<_Comment>(this, _$identity); } abstract class _Comment implements Comment { const factory _Comment( String commentId, String author, ChannelId channelId, String text, int likeCount, String publishedTime, int replyCount, @internal String? continuation, @internal String? clicktrackingParams) = _$_Comment; @override /// Comment id. String get commentId => throw _privateConstructorUsedError; @override /// Comment author name. String get author => throw _privateConstructorUsedError; @override /// Comment author channel id. ChannelId get channelId => throw _privateConstructorUsedError; @override /// Comment text. String get text => throw _privateConstructorUsedError; @override /// Comment likes count. int get likeCount => throw _privateConstructorUsedError; @override /// Published time as string. (For example: "2 years ago") String get publishedTime => throw _privateConstructorUsedError; @override /// Comment reply count. int get replyCount => throw _privateConstructorUsedError; @override /// Used internally. /// Shouldn't be used in the code. @internal String? get continuation => throw _privateConstructorUsedError; @override /// Used internally. /// Shouldn't be used in the code. @internal String? get clicktrackingParams => throw _privateConstructorUsedError; @override @JsonKey(ignore: true) _$CommentCopyWith<_Comment> get copyWith => throw _privateConstructorUsedError; }