Line data Source code
1 : // GENERATED CODE - DO NOT MODIFY BY HAND
2 : // 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
3 :
4 : part of 'ordering.dart';
5 :
6 : // **************************************************************************
7 : // FreezedGenerator
8 : // **************************************************************************
9 :
10 0 : T _$identity<T>(T value) => value;
11 :
12 0 : final _privateConstructorUsedError = UnsupportedError(
13 : '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');
14 :
15 : /// @nodoc
16 : class _$OrderingTearOff {
17 7 : const _$OrderingTearOff();
18 :
19 0 : TypeOrdering type(String customType, String field,
20 : {bool descending = false}) {
21 0 : return TypeOrdering(
22 : customType,
23 : field,
24 : descending: descending,
25 : );
26 : }
27 :
28 0 : DocumentOrdering document(String type, {bool descending = false}) {
29 0 : return DocumentOrdering(
30 : type,
31 : descending: descending,
32 : );
33 : }
34 :
35 0 : FirstPublicationDateOrdering firstPublicationDate({bool descending = false}) {
36 0 : return FirstPublicationDateOrdering(
37 : descending: descending,
38 : );
39 : }
40 :
41 0 : LastPublicationDateOrdering lastPublicationDate({bool descending = false}) {
42 0 : return LastPublicationDateOrdering(
43 : descending: descending,
44 : );
45 : }
46 : }
47 :
48 : /// @nodoc
49 : const $Ordering = _$OrderingTearOff();
50 :
51 : /// @nodoc
52 : mixin _$Ordering {
53 0 : bool get descending => throw _privateConstructorUsedError;
54 :
55 0 : @optionalTypeArgs
56 : TResult when<TResult extends Object?>({
57 : required TResult Function(String customType, String field, bool descending)
58 : type,
59 : required TResult Function(String type, bool descending) document,
60 : required TResult Function(bool descending) firstPublicationDate,
61 : required TResult Function(bool descending) lastPublicationDate,
62 : }) =>
63 0 : throw _privateConstructorUsedError;
64 0 : @optionalTypeArgs
65 : TResult maybeWhen<TResult extends Object?>({
66 : TResult Function(String customType, String field, bool descending)? type,
67 : TResult Function(String type, bool descending)? document,
68 : TResult Function(bool descending)? firstPublicationDate,
69 : TResult Function(bool descending)? lastPublicationDate,
70 : required TResult orElse(),
71 : }) =>
72 0 : throw _privateConstructorUsedError;
73 0 : @optionalTypeArgs
74 : TResult map<TResult extends Object?>({
75 : required TResult Function(TypeOrdering value) type,
76 : required TResult Function(DocumentOrdering value) document,
77 : required TResult Function(FirstPublicationDateOrdering value)
78 : firstPublicationDate,
79 : required TResult Function(LastPublicationDateOrdering value)
80 : lastPublicationDate,
81 : }) =>
82 0 : throw _privateConstructorUsedError;
83 0 : @optionalTypeArgs
84 : TResult maybeMap<TResult extends Object?>({
85 : TResult Function(TypeOrdering value)? type,
86 : TResult Function(DocumentOrdering value)? document,
87 : TResult Function(FirstPublicationDateOrdering value)? firstPublicationDate,
88 : TResult Function(LastPublicationDateOrdering value)? lastPublicationDate,
89 : required TResult orElse(),
90 : }) =>
91 0 : throw _privateConstructorUsedError;
92 :
93 0 : @JsonKey(ignore: true)
94 : $OrderingCopyWith<Ordering> get copyWith =>
95 0 : throw _privateConstructorUsedError;
96 : }
97 :
98 : /// @nodoc
99 : abstract class $OrderingCopyWith<$Res> {
100 : factory $OrderingCopyWith(Ordering value, $Res Function(Ordering) then) =
101 : _$OrderingCopyWithImpl<$Res>;
102 : $Res call({bool descending});
103 : }
104 :
105 : /// @nodoc
106 : class _$OrderingCopyWithImpl<$Res> implements $OrderingCopyWith<$Res> {
107 0 : _$OrderingCopyWithImpl(this._value, this._then);
108 :
109 : final Ordering _value;
110 : // ignore: unused_field
111 : final $Res Function(Ordering) _then;
112 :
113 0 : @override
114 : $Res call({
115 : Object? descending = freezed,
116 : }) {
117 0 : return _then(_value.copyWith(
118 0 : descending: descending == freezed
119 0 : ? _value.descending
120 : : descending // ignore: cast_nullable_to_non_nullable
121 : as bool,
122 : ));
123 : }
124 : }
125 :
126 : /// @nodoc
127 : abstract class $TypeOrderingCopyWith<$Res> implements $OrderingCopyWith<$Res> {
128 : factory $TypeOrderingCopyWith(
129 : TypeOrdering value, $Res Function(TypeOrdering) then) =
130 : _$TypeOrderingCopyWithImpl<$Res>;
131 : @override
132 : $Res call({String customType, String field, bool descending});
133 : }
134 :
135 : /// @nodoc
136 : class _$TypeOrderingCopyWithImpl<$Res> extends _$OrderingCopyWithImpl<$Res>
137 : implements $TypeOrderingCopyWith<$Res> {
138 0 : _$TypeOrderingCopyWithImpl(
139 : TypeOrdering _value, $Res Function(TypeOrdering) _then)
140 0 : : super(_value, (v) => _then(v as TypeOrdering));
141 :
142 0 : @override
143 0 : TypeOrdering get _value => super._value as TypeOrdering;
144 :
145 0 : @override
146 : $Res call({
147 : Object? customType = freezed,
148 : Object? field = freezed,
149 : Object? descending = freezed,
150 : }) {
151 0 : return _then(TypeOrdering(
152 0 : customType == freezed
153 0 : ? _value.customType
154 : : customType // ignore: cast_nullable_to_non_nullable
155 : as String,
156 0 : field == freezed
157 0 : ? _value.field
158 : : field // ignore: cast_nullable_to_non_nullable
159 : as String,
160 0 : descending: descending == freezed
161 0 : ? _value.descending
162 : : descending // ignore: cast_nullable_to_non_nullable
163 : as bool,
164 : ));
165 : }
166 : }
167 :
168 : /// @nodoc
169 :
170 : class _$TypeOrdering implements TypeOrdering {
171 1 : const _$TypeOrdering(this.customType, this.field, {this.descending = false});
172 :
173 : @override
174 : final String customType;
175 : @override
176 : final String field;
177 : @JsonKey(defaultValue: false)
178 : @override
179 : final bool descending;
180 :
181 0 : @override
182 : String toString() {
183 0 : return 'Ordering.type(customType: $customType, field: $field, descending: $descending)';
184 : }
185 :
186 0 : @override
187 : bool operator ==(dynamic other) {
188 : return identical(this, other) ||
189 0 : (other is TypeOrdering &&
190 0 : (identical(other.customType, customType) ||
191 : const DeepCollectionEquality()
192 0 : .equals(other.customType, customType)) &&
193 0 : (identical(other.field, field) ||
194 0 : const DeepCollectionEquality().equals(other.field, field)) &&
195 0 : (identical(other.descending, descending) ||
196 : const DeepCollectionEquality()
197 0 : .equals(other.descending, descending)));
198 : }
199 :
200 0 : @override
201 : int get hashCode =>
202 0 : runtimeType.hashCode ^
203 0 : const DeepCollectionEquality().hash(customType) ^
204 0 : const DeepCollectionEquality().hash(field) ^
205 0 : const DeepCollectionEquality().hash(descending);
206 :
207 0 : @JsonKey(ignore: true)
208 : @override
209 : $TypeOrderingCopyWith<TypeOrdering> get copyWith =>
210 0 : _$TypeOrderingCopyWithImpl<TypeOrdering>(this, _$identity);
211 :
212 0 : @override
213 : @optionalTypeArgs
214 : TResult when<TResult extends Object?>({
215 : required TResult Function(String customType, String field, bool descending)
216 : type,
217 : required TResult Function(String type, bool descending) document,
218 : required TResult Function(bool descending) firstPublicationDate,
219 : required TResult Function(bool descending) lastPublicationDate,
220 : }) {
221 0 : return type(customType, field, descending);
222 : }
223 :
224 0 : @override
225 : @optionalTypeArgs
226 : TResult maybeWhen<TResult extends Object?>({
227 : TResult Function(String customType, String field, bool descending)? type,
228 : TResult Function(String type, bool descending)? document,
229 : TResult Function(bool descending)? firstPublicationDate,
230 : TResult Function(bool descending)? lastPublicationDate,
231 : required TResult orElse(),
232 : }) {
233 : if (type != null) {
234 0 : return type(customType, field, descending);
235 : }
236 0 : return orElse();
237 : }
238 :
239 1 : @override
240 : @optionalTypeArgs
241 : TResult map<TResult extends Object?>({
242 : required TResult Function(TypeOrdering value) type,
243 : required TResult Function(DocumentOrdering value) document,
244 : required TResult Function(FirstPublicationDateOrdering value)
245 : firstPublicationDate,
246 : required TResult Function(LastPublicationDateOrdering value)
247 : lastPublicationDate,
248 : }) {
249 1 : return type(this);
250 : }
251 :
252 0 : @override
253 : @optionalTypeArgs
254 : TResult maybeMap<TResult extends Object?>({
255 : TResult Function(TypeOrdering value)? type,
256 : TResult Function(DocumentOrdering value)? document,
257 : TResult Function(FirstPublicationDateOrdering value)? firstPublicationDate,
258 : TResult Function(LastPublicationDateOrdering value)? lastPublicationDate,
259 : required TResult orElse(),
260 : }) {
261 : if (type != null) {
262 0 : return type(this);
263 : }
264 0 : return orElse();
265 : }
266 : }
267 :
268 : abstract class TypeOrdering implements Ordering {
269 : const factory TypeOrdering(String customType, String field,
270 : {bool descending}) = _$TypeOrdering;
271 :
272 0 : String get customType => throw _privateConstructorUsedError;
273 0 : String get field => throw _privateConstructorUsedError;
274 0 : @override
275 0 : bool get descending => throw _privateConstructorUsedError;
276 0 : @override
277 : @JsonKey(ignore: true)
278 : $TypeOrderingCopyWith<TypeOrdering> get copyWith =>
279 0 : throw _privateConstructorUsedError;
280 : }
281 :
282 : /// @nodoc
283 : abstract class $DocumentOrderingCopyWith<$Res>
284 : implements $OrderingCopyWith<$Res> {
285 : factory $DocumentOrderingCopyWith(
286 : DocumentOrdering value, $Res Function(DocumentOrdering) then) =
287 : _$DocumentOrderingCopyWithImpl<$Res>;
288 : @override
289 : $Res call({String type, bool descending});
290 : }
291 :
292 : /// @nodoc
293 : class _$DocumentOrderingCopyWithImpl<$Res> extends _$OrderingCopyWithImpl<$Res>
294 : implements $DocumentOrderingCopyWith<$Res> {
295 0 : _$DocumentOrderingCopyWithImpl(
296 : DocumentOrdering _value, $Res Function(DocumentOrdering) _then)
297 0 : : super(_value, (v) => _then(v as DocumentOrdering));
298 :
299 0 : @override
300 0 : DocumentOrdering get _value => super._value as DocumentOrdering;
301 :
302 0 : @override
303 : $Res call({
304 : Object? type = freezed,
305 : Object? descending = freezed,
306 : }) {
307 0 : return _then(DocumentOrdering(
308 0 : type == freezed
309 0 : ? _value.type
310 : : type // ignore: cast_nullable_to_non_nullable
311 : as String,
312 0 : descending: descending == freezed
313 0 : ? _value.descending
314 : : descending // ignore: cast_nullable_to_non_nullable
315 : as bool,
316 : ));
317 : }
318 : }
319 :
320 : /// @nodoc
321 :
322 : class _$DocumentOrdering implements DocumentOrdering {
323 1 : const _$DocumentOrdering(this.type, {this.descending = false});
324 :
325 : @override
326 : final String type;
327 : @JsonKey(defaultValue: false)
328 : @override
329 : final bool descending;
330 :
331 0 : @override
332 : String toString() {
333 0 : return 'Ordering.document(type: $type, descending: $descending)';
334 : }
335 :
336 0 : @override
337 : bool operator ==(dynamic other) {
338 : return identical(this, other) ||
339 0 : (other is DocumentOrdering &&
340 0 : (identical(other.type, type) ||
341 0 : const DeepCollectionEquality().equals(other.type, type)) &&
342 0 : (identical(other.descending, descending) ||
343 : const DeepCollectionEquality()
344 0 : .equals(other.descending, descending)));
345 : }
346 :
347 0 : @override
348 : int get hashCode =>
349 0 : runtimeType.hashCode ^
350 0 : const DeepCollectionEquality().hash(type) ^
351 0 : const DeepCollectionEquality().hash(descending);
352 :
353 0 : @JsonKey(ignore: true)
354 : @override
355 : $DocumentOrderingCopyWith<DocumentOrdering> get copyWith =>
356 0 : _$DocumentOrderingCopyWithImpl<DocumentOrdering>(this, _$identity);
357 :
358 0 : @override
359 : @optionalTypeArgs
360 : TResult when<TResult extends Object?>({
361 : required TResult Function(String customType, String field, bool descending)
362 : type,
363 : required TResult Function(String type, bool descending) document,
364 : required TResult Function(bool descending) firstPublicationDate,
365 : required TResult Function(bool descending) lastPublicationDate,
366 : }) {
367 0 : return document(this.type, descending);
368 : }
369 :
370 0 : @override
371 : @optionalTypeArgs
372 : TResult maybeWhen<TResult extends Object?>({
373 : TResult Function(String customType, String field, bool descending)? type,
374 : TResult Function(String type, bool descending)? document,
375 : TResult Function(bool descending)? firstPublicationDate,
376 : TResult Function(bool descending)? lastPublicationDate,
377 : required TResult orElse(),
378 : }) {
379 : if (document != null) {
380 0 : return document(this.type, descending);
381 : }
382 0 : return orElse();
383 : }
384 :
385 1 : @override
386 : @optionalTypeArgs
387 : TResult map<TResult extends Object?>({
388 : required TResult Function(TypeOrdering value) type,
389 : required TResult Function(DocumentOrdering value) document,
390 : required TResult Function(FirstPublicationDateOrdering value)
391 : firstPublicationDate,
392 : required TResult Function(LastPublicationDateOrdering value)
393 : lastPublicationDate,
394 : }) {
395 1 : return document(this);
396 : }
397 :
398 0 : @override
399 : @optionalTypeArgs
400 : TResult maybeMap<TResult extends Object?>({
401 : TResult Function(TypeOrdering value)? type,
402 : TResult Function(DocumentOrdering value)? document,
403 : TResult Function(FirstPublicationDateOrdering value)? firstPublicationDate,
404 : TResult Function(LastPublicationDateOrdering value)? lastPublicationDate,
405 : required TResult orElse(),
406 : }) {
407 : if (document != null) {
408 0 : return document(this);
409 : }
410 0 : return orElse();
411 : }
412 : }
413 :
414 : abstract class DocumentOrdering implements Ordering {
415 : const factory DocumentOrdering(String type, {bool descending}) =
416 : _$DocumentOrdering;
417 :
418 0 : String get type => throw _privateConstructorUsedError;
419 0 : @override
420 0 : bool get descending => throw _privateConstructorUsedError;
421 0 : @override
422 : @JsonKey(ignore: true)
423 : $DocumentOrderingCopyWith<DocumentOrdering> get copyWith =>
424 0 : throw _privateConstructorUsedError;
425 : }
426 :
427 : /// @nodoc
428 : abstract class $FirstPublicationDateOrderingCopyWith<$Res>
429 : implements $OrderingCopyWith<$Res> {
430 : factory $FirstPublicationDateOrderingCopyWith(
431 : FirstPublicationDateOrdering value,
432 : $Res Function(FirstPublicationDateOrdering) then) =
433 : _$FirstPublicationDateOrderingCopyWithImpl<$Res>;
434 : @override
435 : $Res call({bool descending});
436 : }
437 :
438 : /// @nodoc
439 : class _$FirstPublicationDateOrderingCopyWithImpl<$Res>
440 : extends _$OrderingCopyWithImpl<$Res>
441 : implements $FirstPublicationDateOrderingCopyWith<$Res> {
442 0 : _$FirstPublicationDateOrderingCopyWithImpl(
443 : FirstPublicationDateOrdering _value,
444 : $Res Function(FirstPublicationDateOrdering) _then)
445 0 : : super(_value, (v) => _then(v as FirstPublicationDateOrdering));
446 :
447 0 : @override
448 : FirstPublicationDateOrdering get _value =>
449 0 : super._value as FirstPublicationDateOrdering;
450 :
451 0 : @override
452 : $Res call({
453 : Object? descending = freezed,
454 : }) {
455 0 : return _then(FirstPublicationDateOrdering(
456 0 : descending: descending == freezed
457 0 : ? _value.descending
458 : : descending // ignore: cast_nullable_to_non_nullable
459 : as bool,
460 : ));
461 : }
462 : }
463 :
464 : /// @nodoc
465 :
466 : class _$FirstPublicationDateOrdering implements FirstPublicationDateOrdering {
467 1 : const _$FirstPublicationDateOrdering({this.descending = false});
468 :
469 : @JsonKey(defaultValue: false)
470 : @override
471 : final bool descending;
472 :
473 0 : @override
474 : String toString() {
475 0 : return 'Ordering.firstPublicationDate(descending: $descending)';
476 : }
477 :
478 0 : @override
479 : bool operator ==(dynamic other) {
480 : return identical(this, other) ||
481 0 : (other is FirstPublicationDateOrdering &&
482 0 : (identical(other.descending, descending) ||
483 : const DeepCollectionEquality()
484 0 : .equals(other.descending, descending)));
485 : }
486 :
487 0 : @override
488 : int get hashCode =>
489 0 : runtimeType.hashCode ^ const DeepCollectionEquality().hash(descending);
490 :
491 0 : @JsonKey(ignore: true)
492 : @override
493 : $FirstPublicationDateOrderingCopyWith<FirstPublicationDateOrdering>
494 0 : get copyWith => _$FirstPublicationDateOrderingCopyWithImpl<
495 : FirstPublicationDateOrdering>(this, _$identity);
496 :
497 0 : @override
498 : @optionalTypeArgs
499 : TResult when<TResult extends Object?>({
500 : required TResult Function(String customType, String field, bool descending)
501 : type,
502 : required TResult Function(String type, bool descending) document,
503 : required TResult Function(bool descending) firstPublicationDate,
504 : required TResult Function(bool descending) lastPublicationDate,
505 : }) {
506 0 : return firstPublicationDate(descending);
507 : }
508 :
509 0 : @override
510 : @optionalTypeArgs
511 : TResult maybeWhen<TResult extends Object?>({
512 : TResult Function(String customType, String field, bool descending)? type,
513 : TResult Function(String type, bool descending)? document,
514 : TResult Function(bool descending)? firstPublicationDate,
515 : TResult Function(bool descending)? lastPublicationDate,
516 : required TResult orElse(),
517 : }) {
518 : if (firstPublicationDate != null) {
519 0 : return firstPublicationDate(descending);
520 : }
521 0 : return orElse();
522 : }
523 :
524 1 : @override
525 : @optionalTypeArgs
526 : TResult map<TResult extends Object?>({
527 : required TResult Function(TypeOrdering value) type,
528 : required TResult Function(DocumentOrdering value) document,
529 : required TResult Function(FirstPublicationDateOrdering value)
530 : firstPublicationDate,
531 : required TResult Function(LastPublicationDateOrdering value)
532 : lastPublicationDate,
533 : }) {
534 1 : return firstPublicationDate(this);
535 : }
536 :
537 0 : @override
538 : @optionalTypeArgs
539 : TResult maybeMap<TResult extends Object?>({
540 : TResult Function(TypeOrdering value)? type,
541 : TResult Function(DocumentOrdering value)? document,
542 : TResult Function(FirstPublicationDateOrdering value)? firstPublicationDate,
543 : TResult Function(LastPublicationDateOrdering value)? lastPublicationDate,
544 : required TResult orElse(),
545 : }) {
546 : if (firstPublicationDate != null) {
547 0 : return firstPublicationDate(this);
548 : }
549 0 : return orElse();
550 : }
551 : }
552 :
553 : abstract class FirstPublicationDateOrdering implements Ordering {
554 : const factory FirstPublicationDateOrdering({bool descending}) =
555 : _$FirstPublicationDateOrdering;
556 :
557 0 : @override
558 0 : bool get descending => throw _privateConstructorUsedError;
559 0 : @override
560 : @JsonKey(ignore: true)
561 : $FirstPublicationDateOrderingCopyWith<FirstPublicationDateOrdering>
562 0 : get copyWith => throw _privateConstructorUsedError;
563 : }
564 :
565 : /// @nodoc
566 : abstract class $LastPublicationDateOrderingCopyWith<$Res>
567 : implements $OrderingCopyWith<$Res> {
568 : factory $LastPublicationDateOrderingCopyWith(
569 : LastPublicationDateOrdering value,
570 : $Res Function(LastPublicationDateOrdering) then) =
571 : _$LastPublicationDateOrderingCopyWithImpl<$Res>;
572 : @override
573 : $Res call({bool descending});
574 : }
575 :
576 : /// @nodoc
577 : class _$LastPublicationDateOrderingCopyWithImpl<$Res>
578 : extends _$OrderingCopyWithImpl<$Res>
579 : implements $LastPublicationDateOrderingCopyWith<$Res> {
580 0 : _$LastPublicationDateOrderingCopyWithImpl(LastPublicationDateOrdering _value,
581 : $Res Function(LastPublicationDateOrdering) _then)
582 0 : : super(_value, (v) => _then(v as LastPublicationDateOrdering));
583 :
584 0 : @override
585 : LastPublicationDateOrdering get _value =>
586 0 : super._value as LastPublicationDateOrdering;
587 :
588 0 : @override
589 : $Res call({
590 : Object? descending = freezed,
591 : }) {
592 0 : return _then(LastPublicationDateOrdering(
593 0 : descending: descending == freezed
594 0 : ? _value.descending
595 : : descending // ignore: cast_nullable_to_non_nullable
596 : as bool,
597 : ));
598 : }
599 : }
600 :
601 : /// @nodoc
602 :
603 : class _$LastPublicationDateOrdering implements LastPublicationDateOrdering {
604 1 : const _$LastPublicationDateOrdering({this.descending = false});
605 :
606 : @JsonKey(defaultValue: false)
607 : @override
608 : final bool descending;
609 :
610 0 : @override
611 : String toString() {
612 0 : return 'Ordering.lastPublicationDate(descending: $descending)';
613 : }
614 :
615 0 : @override
616 : bool operator ==(dynamic other) {
617 : return identical(this, other) ||
618 0 : (other is LastPublicationDateOrdering &&
619 0 : (identical(other.descending, descending) ||
620 : const DeepCollectionEquality()
621 0 : .equals(other.descending, descending)));
622 : }
623 :
624 0 : @override
625 : int get hashCode =>
626 0 : runtimeType.hashCode ^ const DeepCollectionEquality().hash(descending);
627 :
628 0 : @JsonKey(ignore: true)
629 : @override
630 : $LastPublicationDateOrderingCopyWith<LastPublicationDateOrdering>
631 0 : get copyWith => _$LastPublicationDateOrderingCopyWithImpl<
632 : LastPublicationDateOrdering>(this, _$identity);
633 :
634 0 : @override
635 : @optionalTypeArgs
636 : TResult when<TResult extends Object?>({
637 : required TResult Function(String customType, String field, bool descending)
638 : type,
639 : required TResult Function(String type, bool descending) document,
640 : required TResult Function(bool descending) firstPublicationDate,
641 : required TResult Function(bool descending) lastPublicationDate,
642 : }) {
643 0 : return lastPublicationDate(descending);
644 : }
645 :
646 0 : @override
647 : @optionalTypeArgs
648 : TResult maybeWhen<TResult extends Object?>({
649 : TResult Function(String customType, String field, bool descending)? type,
650 : TResult Function(String type, bool descending)? document,
651 : TResult Function(bool descending)? firstPublicationDate,
652 : TResult Function(bool descending)? lastPublicationDate,
653 : required TResult orElse(),
654 : }) {
655 : if (lastPublicationDate != null) {
656 0 : return lastPublicationDate(descending);
657 : }
658 0 : return orElse();
659 : }
660 :
661 1 : @override
662 : @optionalTypeArgs
663 : TResult map<TResult extends Object?>({
664 : required TResult Function(TypeOrdering value) type,
665 : required TResult Function(DocumentOrdering value) document,
666 : required TResult Function(FirstPublicationDateOrdering value)
667 : firstPublicationDate,
668 : required TResult Function(LastPublicationDateOrdering value)
669 : lastPublicationDate,
670 : }) {
671 1 : return lastPublicationDate(this);
672 : }
673 :
674 0 : @override
675 : @optionalTypeArgs
676 : TResult maybeMap<TResult extends Object?>({
677 : TResult Function(TypeOrdering value)? type,
678 : TResult Function(DocumentOrdering value)? document,
679 : TResult Function(FirstPublicationDateOrdering value)? firstPublicationDate,
680 : TResult Function(LastPublicationDateOrdering value)? lastPublicationDate,
681 : required TResult orElse(),
682 : }) {
683 : if (lastPublicationDate != null) {
684 0 : return lastPublicationDate(this);
685 : }
686 0 : return orElse();
687 : }
688 : }
689 :
690 : abstract class LastPublicationDateOrdering implements Ordering {
691 : const factory LastPublicationDateOrdering({bool descending}) =
692 : _$LastPublicationDateOrdering;
693 :
694 0 : @override
695 0 : bool get descending => throw _privateConstructorUsedError;
696 0 : @override
697 : @JsonKey(ignore: true)
698 : $LastPublicationDateOrderingCopyWith<LastPublicationDateOrdering>
699 0 : get copyWith => throw _privateConstructorUsedError;
700 : }
|