this repo has no description
at main 236 lines 8.0 kB view raw
1// coverage:ignore-file 2// GENERATED CODE - DO NOT MODIFY BY HAND 3// ignore_for_file: type=lint 4// 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 5 6part of 'create_comment_request.dart'; 7 8// ************************************************************************** 9// FreezedGenerator 10// ************************************************************************** 11 12T _$identity<T>(T value) => value; 13 14final _privateConstructorUsedError = UnsupportedError( 15 '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', 16); 17 18CreateCommentRequest _$CreateCommentRequestFromJson(Map<String, dynamic> json) { 19 return _CreateCommentRequest.fromJson(json); 20} 21 22/// @nodoc 23mixin _$CreateCommentRequest { 24 String get text => throw _privateConstructorUsedError; 25 String get subject => throw _privateConstructorUsedError; 26 String? get focus => throw _privateConstructorUsedError; 27 String? get replyTo => throw _privateConstructorUsedError; 28 29 /// Serializes this CreateCommentRequest to a JSON map. 30 Map<String, dynamic> toJson() => throw _privateConstructorUsedError; 31 32 /// Create a copy of CreateCommentRequest 33 /// with the given fields replaced by the non-null parameter values. 34 @JsonKey(includeFromJson: false, includeToJson: false) 35 $CreateCommentRequestCopyWith<CreateCommentRequest> get copyWith => 36 throw _privateConstructorUsedError; 37} 38 39/// @nodoc 40abstract class $CreateCommentRequestCopyWith<$Res> { 41 factory $CreateCommentRequestCopyWith( 42 CreateCommentRequest value, 43 $Res Function(CreateCommentRequest) then, 44 ) = _$CreateCommentRequestCopyWithImpl<$Res, CreateCommentRequest>; 45 @useResult 46 $Res call({String text, String subject, String? focus, String? replyTo}); 47} 48 49/// @nodoc 50class _$CreateCommentRequestCopyWithImpl< 51 $Res, 52 $Val extends CreateCommentRequest 53> 54 implements $CreateCommentRequestCopyWith<$Res> { 55 _$CreateCommentRequestCopyWithImpl(this._value, this._then); 56 57 // ignore: unused_field 58 final $Val _value; 59 // ignore: unused_field 60 final $Res Function($Val) _then; 61 62 /// Create a copy of CreateCommentRequest 63 /// with the given fields replaced by the non-null parameter values. 64 @pragma('vm:prefer-inline') 65 @override 66 $Res call({ 67 Object? text = null, 68 Object? subject = null, 69 Object? focus = freezed, 70 Object? replyTo = freezed, 71 }) { 72 return _then( 73 _value.copyWith( 74 text: null == text 75 ? _value.text 76 : text // ignore: cast_nullable_to_non_nullable 77 as String, 78 subject: null == subject 79 ? _value.subject 80 : subject // ignore: cast_nullable_to_non_nullable 81 as String, 82 focus: freezed == focus 83 ? _value.focus 84 : focus // ignore: cast_nullable_to_non_nullable 85 as String?, 86 replyTo: freezed == replyTo 87 ? _value.replyTo 88 : replyTo // ignore: cast_nullable_to_non_nullable 89 as String?, 90 ) 91 as $Val, 92 ); 93 } 94} 95 96/// @nodoc 97abstract class _$$CreateCommentRequestImplCopyWith<$Res> 98 implements $CreateCommentRequestCopyWith<$Res> { 99 factory _$$CreateCommentRequestImplCopyWith( 100 _$CreateCommentRequestImpl value, 101 $Res Function(_$CreateCommentRequestImpl) then, 102 ) = __$$CreateCommentRequestImplCopyWithImpl<$Res>; 103 @override 104 @useResult 105 $Res call({String text, String subject, String? focus, String? replyTo}); 106} 107 108/// @nodoc 109class __$$CreateCommentRequestImplCopyWithImpl<$Res> 110 extends _$CreateCommentRequestCopyWithImpl<$Res, _$CreateCommentRequestImpl> 111 implements _$$CreateCommentRequestImplCopyWith<$Res> { 112 __$$CreateCommentRequestImplCopyWithImpl( 113 _$CreateCommentRequestImpl _value, 114 $Res Function(_$CreateCommentRequestImpl) _then, 115 ) : super(_value, _then); 116 117 /// Create a copy of CreateCommentRequest 118 /// with the given fields replaced by the non-null parameter values. 119 @pragma('vm:prefer-inline') 120 @override 121 $Res call({ 122 Object? text = null, 123 Object? subject = null, 124 Object? focus = freezed, 125 Object? replyTo = freezed, 126 }) { 127 return _then( 128 _$CreateCommentRequestImpl( 129 text: null == text 130 ? _value.text 131 : text // ignore: cast_nullable_to_non_nullable 132 as String, 133 subject: null == subject 134 ? _value.subject 135 : subject // ignore: cast_nullable_to_non_nullable 136 as String, 137 focus: freezed == focus 138 ? _value.focus 139 : focus // ignore: cast_nullable_to_non_nullable 140 as String?, 141 replyTo: freezed == replyTo 142 ? _value.replyTo 143 : replyTo // ignore: cast_nullable_to_non_nullable 144 as String?, 145 ), 146 ); 147 } 148} 149 150/// @nodoc 151@JsonSerializable() 152class _$CreateCommentRequestImpl implements _CreateCommentRequest { 153 const _$CreateCommentRequestImpl({ 154 required this.text, 155 required this.subject, 156 this.focus, 157 this.replyTo, 158 }); 159 160 factory _$CreateCommentRequestImpl.fromJson(Map<String, dynamic> json) => 161 _$$CreateCommentRequestImplFromJson(json); 162 163 @override 164 final String text; 165 @override 166 final String subject; 167 @override 168 final String? focus; 169 @override 170 final String? replyTo; 171 172 @override 173 String toString() { 174 return 'CreateCommentRequest(text: $text, subject: $subject, focus: $focus, replyTo: $replyTo)'; 175 } 176 177 @override 178 bool operator ==(Object other) { 179 return identical(this, other) || 180 (other.runtimeType == runtimeType && 181 other is _$CreateCommentRequestImpl && 182 (identical(other.text, text) || other.text == text) && 183 (identical(other.subject, subject) || other.subject == subject) && 184 (identical(other.focus, focus) || other.focus == focus) && 185 (identical(other.replyTo, replyTo) || other.replyTo == replyTo)); 186 } 187 188 @JsonKey(includeFromJson: false, includeToJson: false) 189 @override 190 int get hashCode => Object.hash(runtimeType, text, subject, focus, replyTo); 191 192 /// Create a copy of CreateCommentRequest 193 /// with the given fields replaced by the non-null parameter values. 194 @JsonKey(includeFromJson: false, includeToJson: false) 195 @override 196 @pragma('vm:prefer-inline') 197 _$$CreateCommentRequestImplCopyWith<_$CreateCommentRequestImpl> 198 get copyWith => 199 __$$CreateCommentRequestImplCopyWithImpl<_$CreateCommentRequestImpl>( 200 this, 201 _$identity, 202 ); 203 204 @override 205 Map<String, dynamic> toJson() { 206 return _$$CreateCommentRequestImplToJson(this); 207 } 208} 209 210abstract class _CreateCommentRequest implements CreateCommentRequest { 211 const factory _CreateCommentRequest({ 212 required final String text, 213 required final String subject, 214 final String? focus, 215 final String? replyTo, 216 }) = _$CreateCommentRequestImpl; 217 218 factory _CreateCommentRequest.fromJson(Map<String, dynamic> json) = 219 _$CreateCommentRequestImpl.fromJson; 220 221 @override 222 String get text; 223 @override 224 String get subject; 225 @override 226 String? get focus; 227 @override 228 String? get replyTo; 229 230 /// Create a copy of CreateCommentRequest 231 /// with the given fields replaced by the non-null parameter values. 232 @override 233 @JsonKey(includeFromJson: false, includeToJson: false) 234 _$$CreateCommentRequestImplCopyWith<_$CreateCommentRequestImpl> 235 get copyWith => throw _privateConstructorUsedError; 236}