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 'slice.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 1 : Slice _$SliceFromJson(Map<String, dynamic> json) {
16 1 : return _Slice.fromJson(json);
17 : }
18 :
19 : /// @nodoc
20 : class _$SliceTearOff {
21 7 : const _$SliceTearOff();
22 :
23 0 : _Slice call(
24 : {@JsonKey(name: 'slice_label') String? sliceLabel,
25 : @JsonKey(name: 'slice_type') required String? sliceType,
26 : List<Map<String, dynamic>>? items,
27 : Map<String, dynamic>? primary}) {
28 0 : return _Slice(
29 : sliceLabel: sliceLabel,
30 : sliceType: sliceType,
31 : items: items,
32 : primary: primary,
33 : );
34 : }
35 :
36 0 : Slice fromJson(Map<String, Object> json) {
37 0 : return Slice.fromJson(json);
38 : }
39 : }
40 :
41 : /// @nodoc
42 : const $Slice = _$SliceTearOff();
43 :
44 : /// @nodoc
45 : mixin _$Slice {
46 0 : @JsonKey(name: 'slice_label')
47 0 : String? get sliceLabel => throw _privateConstructorUsedError;
48 0 : @JsonKey(name: 'slice_type')
49 0 : String? get sliceType => throw _privateConstructorUsedError;
50 0 : List<Map<String, dynamic>>? get items => throw _privateConstructorUsedError;
51 0 : Map<String, dynamic>? get primary => throw _privateConstructorUsedError;
52 :
53 0 : Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
54 0 : @JsonKey(ignore: true)
55 0 : $SliceCopyWith<Slice> get copyWith => throw _privateConstructorUsedError;
56 : }
57 :
58 : /// @nodoc
59 : abstract class $SliceCopyWith<$Res> {
60 : factory $SliceCopyWith(Slice value, $Res Function(Slice) then) =
61 : _$SliceCopyWithImpl<$Res>;
62 : $Res call(
63 : {@JsonKey(name: 'slice_label') String? sliceLabel,
64 : @JsonKey(name: 'slice_type') String? sliceType,
65 : List<Map<String, dynamic>>? items,
66 : Map<String, dynamic>? primary});
67 : }
68 :
69 : /// @nodoc
70 : class _$SliceCopyWithImpl<$Res> implements $SliceCopyWith<$Res> {
71 0 : _$SliceCopyWithImpl(this._value, this._then);
72 :
73 : final Slice _value;
74 : // ignore: unused_field
75 : final $Res Function(Slice) _then;
76 :
77 0 : @override
78 : $Res call({
79 : Object? sliceLabel = freezed,
80 : Object? sliceType = freezed,
81 : Object? items = freezed,
82 : Object? primary = freezed,
83 : }) {
84 0 : return _then(_value.copyWith(
85 0 : sliceLabel: sliceLabel == freezed
86 0 : ? _value.sliceLabel
87 : : sliceLabel // ignore: cast_nullable_to_non_nullable
88 : as String?,
89 0 : sliceType: sliceType == freezed
90 0 : ? _value.sliceType
91 : : sliceType // ignore: cast_nullable_to_non_nullable
92 : as String?,
93 0 : items: items == freezed
94 0 : ? _value.items
95 : : items // ignore: cast_nullable_to_non_nullable
96 : as List<Map<String, dynamic>>?,
97 0 : primary: primary == freezed
98 0 : ? _value.primary
99 : : primary // ignore: cast_nullable_to_non_nullable
100 : as Map<String, dynamic>?,
101 : ));
102 : }
103 : }
104 :
105 : /// @nodoc
106 : abstract class _$SliceCopyWith<$Res> implements $SliceCopyWith<$Res> {
107 : factory _$SliceCopyWith(_Slice value, $Res Function(_Slice) then) =
108 : __$SliceCopyWithImpl<$Res>;
109 : @override
110 : $Res call(
111 : {@JsonKey(name: 'slice_label') String? sliceLabel,
112 : @JsonKey(name: 'slice_type') String? sliceType,
113 : List<Map<String, dynamic>>? items,
114 : Map<String, dynamic>? primary});
115 : }
116 :
117 : /// @nodoc
118 : class __$SliceCopyWithImpl<$Res> extends _$SliceCopyWithImpl<$Res>
119 : implements _$SliceCopyWith<$Res> {
120 0 : __$SliceCopyWithImpl(_Slice _value, $Res Function(_Slice) _then)
121 0 : : super(_value, (v) => _then(v as _Slice));
122 :
123 0 : @override
124 0 : _Slice get _value => super._value as _Slice;
125 :
126 0 : @override
127 : $Res call({
128 : Object? sliceLabel = freezed,
129 : Object? sliceType = freezed,
130 : Object? items = freezed,
131 : Object? primary = freezed,
132 : }) {
133 0 : return _then(_Slice(
134 0 : sliceLabel: sliceLabel == freezed
135 0 : ? _value.sliceLabel
136 : : sliceLabel // ignore: cast_nullable_to_non_nullable
137 : as String?,
138 0 : sliceType: sliceType == freezed
139 0 : ? _value.sliceType
140 : : sliceType // ignore: cast_nullable_to_non_nullable
141 : as String?,
142 0 : items: items == freezed
143 0 : ? _value.items
144 : : items // ignore: cast_nullable_to_non_nullable
145 : as List<Map<String, dynamic>>?,
146 0 : primary: primary == freezed
147 0 : ? _value.primary
148 : : primary // ignore: cast_nullable_to_non_nullable
149 : as Map<String, dynamic>?,
150 : ));
151 : }
152 : }
153 :
154 : /// @nodoc
155 : @JsonSerializable()
156 : class _$_Slice implements _Slice {
157 1 : _$_Slice(
158 : {@JsonKey(name: 'slice_label') this.sliceLabel,
159 : @JsonKey(name: 'slice_type') required this.sliceType,
160 : this.items,
161 : this.primary});
162 :
163 1 : factory _$_Slice.fromJson(Map<String, dynamic> json) =>
164 1 : _$_$_SliceFromJson(json);
165 :
166 : @override
167 : @JsonKey(name: 'slice_label')
168 : final String? sliceLabel;
169 : @override
170 : @JsonKey(name: 'slice_type')
171 : final String? sliceType;
172 : @override
173 : final List<Map<String, dynamic>>? items;
174 : @override
175 : final Map<String, dynamic>? primary;
176 :
177 0 : @override
178 : String toString() {
179 0 : return 'Slice(sliceLabel: $sliceLabel, sliceType: $sliceType, items: $items, primary: $primary)';
180 : }
181 :
182 0 : @override
183 : bool operator ==(dynamic other) {
184 : return identical(this, other) ||
185 0 : (other is _Slice &&
186 0 : (identical(other.sliceLabel, sliceLabel) ||
187 : const DeepCollectionEquality()
188 0 : .equals(other.sliceLabel, sliceLabel)) &&
189 0 : (identical(other.sliceType, sliceType) ||
190 : const DeepCollectionEquality()
191 0 : .equals(other.sliceType, sliceType)) &&
192 0 : (identical(other.items, items) ||
193 0 : const DeepCollectionEquality().equals(other.items, items)) &&
194 0 : (identical(other.primary, primary) ||
195 0 : const DeepCollectionEquality().equals(other.primary, primary)));
196 : }
197 :
198 0 : @override
199 : int get hashCode =>
200 0 : runtimeType.hashCode ^
201 0 : const DeepCollectionEquality().hash(sliceLabel) ^
202 0 : const DeepCollectionEquality().hash(sliceType) ^
203 0 : const DeepCollectionEquality().hash(items) ^
204 0 : const DeepCollectionEquality().hash(primary);
205 :
206 0 : @JsonKey(ignore: true)
207 : @override
208 : _$SliceCopyWith<_Slice> get copyWith =>
209 0 : __$SliceCopyWithImpl<_Slice>(this, _$identity);
210 :
211 0 : @override
212 : Map<String, dynamic> toJson() {
213 0 : return _$_$_SliceToJson(this);
214 : }
215 : }
216 :
217 : abstract class _Slice implements Slice {
218 : factory _Slice(
219 : {@JsonKey(name: 'slice_label') String? sliceLabel,
220 : @JsonKey(name: 'slice_type') required String? sliceType,
221 : List<Map<String, dynamic>>? items,
222 : Map<String, dynamic>? primary}) = _$_Slice;
223 :
224 : factory _Slice.fromJson(Map<String, dynamic> json) = _$_Slice.fromJson;
225 :
226 0 : @override
227 : @JsonKey(name: 'slice_label')
228 0 : String? get sliceLabel => throw _privateConstructorUsedError;
229 0 : @override
230 : @JsonKey(name: 'slice_type')
231 0 : String? get sliceType => throw _privateConstructorUsedError;
232 0 : @override
233 0 : List<Map<String, dynamic>>? get items => throw _privateConstructorUsedError;
234 0 : @override
235 0 : Map<String, dynamic>? get primary => throw _privateConstructorUsedError;
236 0 : @override
237 : @JsonKey(ignore: true)
238 0 : _$SliceCopyWith<_Slice> get copyWith => throw _privateConstructorUsedError;
239 : }
|