// 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 'create_comment_request.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', ); CreateCommentRequest _$CreateCommentRequestFromJson(Map json) { return _CreateCommentRequest.fromJson(json); } /// @nodoc mixin _$CreateCommentRequest { String get text => throw _privateConstructorUsedError; String get subject => throw _privateConstructorUsedError; String? get focus => throw _privateConstructorUsedError; String? get replyTo => throw _privateConstructorUsedError; /// Serializes this CreateCommentRequest to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of CreateCommentRequest /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $CreateCommentRequestCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $CreateCommentRequestCopyWith<$Res> { factory $CreateCommentRequestCopyWith( CreateCommentRequest value, $Res Function(CreateCommentRequest) then, ) = _$CreateCommentRequestCopyWithImpl<$Res, CreateCommentRequest>; @useResult $Res call({String text, String subject, String? focus, String? replyTo}); } /// @nodoc class _$CreateCommentRequestCopyWithImpl< $Res, $Val extends CreateCommentRequest > implements $CreateCommentRequestCopyWith<$Res> { _$CreateCommentRequestCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of CreateCommentRequest /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? text = null, Object? subject = null, Object? focus = freezed, Object? replyTo = freezed, }) { return _then( _value.copyWith( text: null == text ? _value.text : text // ignore: cast_nullable_to_non_nullable as String, subject: null == subject ? _value.subject : subject // ignore: cast_nullable_to_non_nullable as String, focus: freezed == focus ? _value.focus : focus // ignore: cast_nullable_to_non_nullable as String?, replyTo: freezed == replyTo ? _value.replyTo : replyTo // ignore: cast_nullable_to_non_nullable as String?, ) as $Val, ); } } /// @nodoc abstract class _$$CreateCommentRequestImplCopyWith<$Res> implements $CreateCommentRequestCopyWith<$Res> { factory _$$CreateCommentRequestImplCopyWith( _$CreateCommentRequestImpl value, $Res Function(_$CreateCommentRequestImpl) then, ) = __$$CreateCommentRequestImplCopyWithImpl<$Res>; @override @useResult $Res call({String text, String subject, String? focus, String? replyTo}); } /// @nodoc class __$$CreateCommentRequestImplCopyWithImpl<$Res> extends _$CreateCommentRequestCopyWithImpl<$Res, _$CreateCommentRequestImpl> implements _$$CreateCommentRequestImplCopyWith<$Res> { __$$CreateCommentRequestImplCopyWithImpl( _$CreateCommentRequestImpl _value, $Res Function(_$CreateCommentRequestImpl) _then, ) : super(_value, _then); /// Create a copy of CreateCommentRequest /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? text = null, Object? subject = null, Object? focus = freezed, Object? replyTo = freezed, }) { return _then( _$CreateCommentRequestImpl( text: null == text ? _value.text : text // ignore: cast_nullable_to_non_nullable as String, subject: null == subject ? _value.subject : subject // ignore: cast_nullable_to_non_nullable as String, focus: freezed == focus ? _value.focus : focus // ignore: cast_nullable_to_non_nullable as String?, replyTo: freezed == replyTo ? _value.replyTo : replyTo // ignore: cast_nullable_to_non_nullable as String?, ), ); } } /// @nodoc @JsonSerializable() class _$CreateCommentRequestImpl implements _CreateCommentRequest { const _$CreateCommentRequestImpl({ required this.text, required this.subject, this.focus, this.replyTo, }); factory _$CreateCommentRequestImpl.fromJson(Map json) => _$$CreateCommentRequestImplFromJson(json); @override final String text; @override final String subject; @override final String? focus; @override final String? replyTo; @override String toString() { return 'CreateCommentRequest(text: $text, subject: $subject, focus: $focus, replyTo: $replyTo)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CreateCommentRequestImpl && (identical(other.text, text) || other.text == text) && (identical(other.subject, subject) || other.subject == subject) && (identical(other.focus, focus) || other.focus == focus) && (identical(other.replyTo, replyTo) || other.replyTo == replyTo)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, text, subject, focus, replyTo); /// Create a copy of CreateCommentRequest /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreateCommentRequestImplCopyWith<_$CreateCommentRequestImpl> get copyWith => __$$CreateCommentRequestImplCopyWithImpl<_$CreateCommentRequestImpl>( this, _$identity, ); @override Map toJson() { return _$$CreateCommentRequestImplToJson(this); } } abstract class _CreateCommentRequest implements CreateCommentRequest { const factory _CreateCommentRequest({ required final String text, required final String subject, final String? focus, final String? replyTo, }) = _$CreateCommentRequestImpl; factory _CreateCommentRequest.fromJson(Map json) = _$CreateCommentRequestImpl.fromJson; @override String get text; @override String get subject; @override String? get focus; @override String? get replyTo; /// Create a copy of CreateCommentRequest /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$CreateCommentRequestImplCopyWith<_$CreateCommentRequestImpl> get copyWith => throw _privateConstructorUsedError; }