this repo has no description
at main 398 lines 12 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 'comment.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 18Comment _$CommentFromJson(Map<String, dynamic> json) { 19 return _Comment.fromJson(json); 20} 21 22/// @nodoc 23mixin _$Comment { 24 String get uri => throw _privateConstructorUsedError; 25 String get cid => throw _privateConstructorUsedError; 26 Profile get author => throw _privateConstructorUsedError; 27 String get text => throw _privateConstructorUsedError; 28 Gallery get subject => throw _privateConstructorUsedError; 29 String? get replyTo => throw _privateConstructorUsedError; 30 String? get createdAt => throw _privateConstructorUsedError; 31 GalleryPhoto? get focus => throw _privateConstructorUsedError; 32 List<Map<String, dynamic>>? get facets => throw _privateConstructorUsedError; 33 34 /// Serializes this Comment to a JSON map. 35 Map<String, dynamic> toJson() => throw _privateConstructorUsedError; 36 37 /// Create a copy of Comment 38 /// with the given fields replaced by the non-null parameter values. 39 @JsonKey(includeFromJson: false, includeToJson: false) 40 $CommentCopyWith<Comment> get copyWith => throw _privateConstructorUsedError; 41} 42 43/// @nodoc 44abstract class $CommentCopyWith<$Res> { 45 factory $CommentCopyWith(Comment value, $Res Function(Comment) then) = 46 _$CommentCopyWithImpl<$Res, Comment>; 47 @useResult 48 $Res call({ 49 String uri, 50 String cid, 51 Profile author, 52 String text, 53 Gallery subject, 54 String? replyTo, 55 String? createdAt, 56 GalleryPhoto? focus, 57 List<Map<String, dynamic>>? facets, 58 }); 59 60 $ProfileCopyWith<$Res> get author; 61 $GalleryCopyWith<$Res> get subject; 62 $GalleryPhotoCopyWith<$Res>? get focus; 63} 64 65/// @nodoc 66class _$CommentCopyWithImpl<$Res, $Val extends Comment> 67 implements $CommentCopyWith<$Res> { 68 _$CommentCopyWithImpl(this._value, this._then); 69 70 // ignore: unused_field 71 final $Val _value; 72 // ignore: unused_field 73 final $Res Function($Val) _then; 74 75 /// Create a copy of Comment 76 /// with the given fields replaced by the non-null parameter values. 77 @pragma('vm:prefer-inline') 78 @override 79 $Res call({ 80 Object? uri = null, 81 Object? cid = null, 82 Object? author = null, 83 Object? text = null, 84 Object? subject = null, 85 Object? replyTo = freezed, 86 Object? createdAt = freezed, 87 Object? focus = freezed, 88 Object? facets = freezed, 89 }) { 90 return _then( 91 _value.copyWith( 92 uri: null == uri 93 ? _value.uri 94 : uri // ignore: cast_nullable_to_non_nullable 95 as String, 96 cid: null == cid 97 ? _value.cid 98 : cid // ignore: cast_nullable_to_non_nullable 99 as String, 100 author: null == author 101 ? _value.author 102 : author // ignore: cast_nullable_to_non_nullable 103 as Profile, 104 text: null == text 105 ? _value.text 106 : text // ignore: cast_nullable_to_non_nullable 107 as String, 108 subject: null == subject 109 ? _value.subject 110 : subject // ignore: cast_nullable_to_non_nullable 111 as Gallery, 112 replyTo: freezed == replyTo 113 ? _value.replyTo 114 : replyTo // ignore: cast_nullable_to_non_nullable 115 as String?, 116 createdAt: freezed == createdAt 117 ? _value.createdAt 118 : createdAt // ignore: cast_nullable_to_non_nullable 119 as String?, 120 focus: freezed == focus 121 ? _value.focus 122 : focus // ignore: cast_nullable_to_non_nullable 123 as GalleryPhoto?, 124 facets: freezed == facets 125 ? _value.facets 126 : facets // ignore: cast_nullable_to_non_nullable 127 as List<Map<String, dynamic>>?, 128 ) 129 as $Val, 130 ); 131 } 132 133 /// Create a copy of Comment 134 /// with the given fields replaced by the non-null parameter values. 135 @override 136 @pragma('vm:prefer-inline') 137 $ProfileCopyWith<$Res> get author { 138 return $ProfileCopyWith<$Res>(_value.author, (value) { 139 return _then(_value.copyWith(author: value) as $Val); 140 }); 141 } 142 143 /// Create a copy of Comment 144 /// with the given fields replaced by the non-null parameter values. 145 @override 146 @pragma('vm:prefer-inline') 147 $GalleryCopyWith<$Res> get subject { 148 return $GalleryCopyWith<$Res>(_value.subject, (value) { 149 return _then(_value.copyWith(subject: value) as $Val); 150 }); 151 } 152 153 /// Create a copy of Comment 154 /// with the given fields replaced by the non-null parameter values. 155 @override 156 @pragma('vm:prefer-inline') 157 $GalleryPhotoCopyWith<$Res>? get focus { 158 if (_value.focus == null) { 159 return null; 160 } 161 162 return $GalleryPhotoCopyWith<$Res>(_value.focus!, (value) { 163 return _then(_value.copyWith(focus: value) as $Val); 164 }); 165 } 166} 167 168/// @nodoc 169abstract class _$$CommentImplCopyWith<$Res> implements $CommentCopyWith<$Res> { 170 factory _$$CommentImplCopyWith( 171 _$CommentImpl value, 172 $Res Function(_$CommentImpl) then, 173 ) = __$$CommentImplCopyWithImpl<$Res>; 174 @override 175 @useResult 176 $Res call({ 177 String uri, 178 String cid, 179 Profile author, 180 String text, 181 Gallery subject, 182 String? replyTo, 183 String? createdAt, 184 GalleryPhoto? focus, 185 List<Map<String, dynamic>>? facets, 186 }); 187 188 @override 189 $ProfileCopyWith<$Res> get author; 190 @override 191 $GalleryCopyWith<$Res> get subject; 192 @override 193 $GalleryPhotoCopyWith<$Res>? get focus; 194} 195 196/// @nodoc 197class __$$CommentImplCopyWithImpl<$Res> 198 extends _$CommentCopyWithImpl<$Res, _$CommentImpl> 199 implements _$$CommentImplCopyWith<$Res> { 200 __$$CommentImplCopyWithImpl( 201 _$CommentImpl _value, 202 $Res Function(_$CommentImpl) _then, 203 ) : super(_value, _then); 204 205 /// Create a copy of Comment 206 /// with the given fields replaced by the non-null parameter values. 207 @pragma('vm:prefer-inline') 208 @override 209 $Res call({ 210 Object? uri = null, 211 Object? cid = null, 212 Object? author = null, 213 Object? text = null, 214 Object? subject = null, 215 Object? replyTo = freezed, 216 Object? createdAt = freezed, 217 Object? focus = freezed, 218 Object? facets = freezed, 219 }) { 220 return _then( 221 _$CommentImpl( 222 uri: null == uri 223 ? _value.uri 224 : uri // ignore: cast_nullable_to_non_nullable 225 as String, 226 cid: null == cid 227 ? _value.cid 228 : cid // ignore: cast_nullable_to_non_nullable 229 as String, 230 author: null == author 231 ? _value.author 232 : author // ignore: cast_nullable_to_non_nullable 233 as Profile, 234 text: null == text 235 ? _value.text 236 : text // ignore: cast_nullable_to_non_nullable 237 as String, 238 subject: null == subject 239 ? _value.subject 240 : subject // ignore: cast_nullable_to_non_nullable 241 as Gallery, 242 replyTo: freezed == replyTo 243 ? _value.replyTo 244 : replyTo // ignore: cast_nullable_to_non_nullable 245 as String?, 246 createdAt: freezed == createdAt 247 ? _value.createdAt 248 : createdAt // ignore: cast_nullable_to_non_nullable 249 as String?, 250 focus: freezed == focus 251 ? _value.focus 252 : focus // ignore: cast_nullable_to_non_nullable 253 as GalleryPhoto?, 254 facets: freezed == facets 255 ? _value._facets 256 : facets // ignore: cast_nullable_to_non_nullable 257 as List<Map<String, dynamic>>?, 258 ), 259 ); 260 } 261} 262 263/// @nodoc 264@JsonSerializable() 265class _$CommentImpl implements _Comment { 266 const _$CommentImpl({ 267 required this.uri, 268 required this.cid, 269 required this.author, 270 required this.text, 271 required this.subject, 272 this.replyTo, 273 this.createdAt, 274 this.focus, 275 final List<Map<String, dynamic>>? facets, 276 }) : _facets = facets; 277 278 factory _$CommentImpl.fromJson(Map<String, dynamic> json) => 279 _$$CommentImplFromJson(json); 280 281 @override 282 final String uri; 283 @override 284 final String cid; 285 @override 286 final Profile author; 287 @override 288 final String text; 289 @override 290 final Gallery subject; 291 @override 292 final String? replyTo; 293 @override 294 final String? createdAt; 295 @override 296 final GalleryPhoto? focus; 297 final List<Map<String, dynamic>>? _facets; 298 @override 299 List<Map<String, dynamic>>? get facets { 300 final value = _facets; 301 if (value == null) return null; 302 if (_facets is EqualUnmodifiableListView) return _facets; 303 // ignore: implicit_dynamic_type 304 return EqualUnmodifiableListView(value); 305 } 306 307 @override 308 String toString() { 309 return 'Comment(uri: $uri, cid: $cid, author: $author, text: $text, subject: $subject, replyTo: $replyTo, createdAt: $createdAt, focus: $focus, facets: $facets)'; 310 } 311 312 @override 313 bool operator ==(Object other) { 314 return identical(this, other) || 315 (other.runtimeType == runtimeType && 316 other is _$CommentImpl && 317 (identical(other.uri, uri) || other.uri == uri) && 318 (identical(other.cid, cid) || other.cid == cid) && 319 (identical(other.author, author) || other.author == author) && 320 (identical(other.text, text) || other.text == text) && 321 (identical(other.subject, subject) || other.subject == subject) && 322 (identical(other.replyTo, replyTo) || other.replyTo == replyTo) && 323 (identical(other.createdAt, createdAt) || 324 other.createdAt == createdAt) && 325 (identical(other.focus, focus) || other.focus == focus) && 326 const DeepCollectionEquality().equals(other._facets, _facets)); 327 } 328 329 @JsonKey(includeFromJson: false, includeToJson: false) 330 @override 331 int get hashCode => Object.hash( 332 runtimeType, 333 uri, 334 cid, 335 author, 336 text, 337 subject, 338 replyTo, 339 createdAt, 340 focus, 341 const DeepCollectionEquality().hash(_facets), 342 ); 343 344 /// Create a copy of Comment 345 /// with the given fields replaced by the non-null parameter values. 346 @JsonKey(includeFromJson: false, includeToJson: false) 347 @override 348 @pragma('vm:prefer-inline') 349 _$$CommentImplCopyWith<_$CommentImpl> get copyWith => 350 __$$CommentImplCopyWithImpl<_$CommentImpl>(this, _$identity); 351 352 @override 353 Map<String, dynamic> toJson() { 354 return _$$CommentImplToJson(this); 355 } 356} 357 358abstract class _Comment implements Comment { 359 const factory _Comment({ 360 required final String uri, 361 required final String cid, 362 required final Profile author, 363 required final String text, 364 required final Gallery subject, 365 final String? replyTo, 366 final String? createdAt, 367 final GalleryPhoto? focus, 368 final List<Map<String, dynamic>>? facets, 369 }) = _$CommentImpl; 370 371 factory _Comment.fromJson(Map<String, dynamic> json) = _$CommentImpl.fromJson; 372 373 @override 374 String get uri; 375 @override 376 String get cid; 377 @override 378 Profile get author; 379 @override 380 String get text; 381 @override 382 Gallery get subject; 383 @override 384 String? get replyTo; 385 @override 386 String? get createdAt; 387 @override 388 GalleryPhoto? get focus; 389 @override 390 List<Map<String, dynamic>>? get facets; 391 392 /// Create a copy of Comment 393 /// with the given fields replaced by the non-null parameter values. 394 @override 395 @JsonKey(includeFromJson: false, includeToJson: false) 396 _$$CommentImplCopyWith<_$CommentImpl> get copyWith => 397 throw _privateConstructorUsedError; 398}