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 'span.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 : Span _$SpanFromJson(Map<String, dynamic> json) {
16 1 : return _Span.fromJson(json);
17 : }
18 :
19 : /// @nodoc
20 : class _$SpanTearOff {
21 7 : const _$SpanTearOff();
22 :
23 0 : _Span call({required String type, required int end, required int start}) {
24 0 : return _Span(
25 : type: type,
26 : end: end,
27 : start: start,
28 : );
29 : }
30 :
31 0 : Span fromJson(Map<String, Object> json) {
32 0 : return Span.fromJson(json);
33 : }
34 : }
35 :
36 : /// @nodoc
37 : const $Span = _$SpanTearOff();
38 :
39 : /// @nodoc
40 : mixin _$Span {
41 0 : String get type => throw _privateConstructorUsedError;
42 0 : int get end => throw _privateConstructorUsedError;
43 0 : int get start => throw _privateConstructorUsedError;
44 :
45 0 : Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
46 0 : @JsonKey(ignore: true)
47 0 : $SpanCopyWith<Span> get copyWith => throw _privateConstructorUsedError;
48 : }
49 :
50 : /// @nodoc
51 : abstract class $SpanCopyWith<$Res> {
52 : factory $SpanCopyWith(Span value, $Res Function(Span) then) =
53 : _$SpanCopyWithImpl<$Res>;
54 : $Res call({String type, int end, int start});
55 : }
56 :
57 : /// @nodoc
58 : class _$SpanCopyWithImpl<$Res> implements $SpanCopyWith<$Res> {
59 0 : _$SpanCopyWithImpl(this._value, this._then);
60 :
61 : final Span _value;
62 : // ignore: unused_field
63 : final $Res Function(Span) _then;
64 :
65 0 : @override
66 : $Res call({
67 : Object? type = freezed,
68 : Object? end = freezed,
69 : Object? start = freezed,
70 : }) {
71 0 : return _then(_value.copyWith(
72 0 : type: type == freezed
73 0 : ? _value.type
74 : : type // ignore: cast_nullable_to_non_nullable
75 : as String,
76 0 : end: end == freezed
77 0 : ? _value.end
78 : : end // ignore: cast_nullable_to_non_nullable
79 : as int,
80 0 : start: start == freezed
81 0 : ? _value.start
82 : : start // ignore: cast_nullable_to_non_nullable
83 : as int,
84 : ));
85 : }
86 : }
87 :
88 : /// @nodoc
89 : abstract class _$SpanCopyWith<$Res> implements $SpanCopyWith<$Res> {
90 : factory _$SpanCopyWith(_Span value, $Res Function(_Span) then) =
91 : __$SpanCopyWithImpl<$Res>;
92 : @override
93 : $Res call({String type, int end, int start});
94 : }
95 :
96 : /// @nodoc
97 : class __$SpanCopyWithImpl<$Res> extends _$SpanCopyWithImpl<$Res>
98 : implements _$SpanCopyWith<$Res> {
99 0 : __$SpanCopyWithImpl(_Span _value, $Res Function(_Span) _then)
100 0 : : super(_value, (v) => _then(v as _Span));
101 :
102 0 : @override
103 0 : _Span get _value => super._value as _Span;
104 :
105 0 : @override
106 : $Res call({
107 : Object? type = freezed,
108 : Object? end = freezed,
109 : Object? start = freezed,
110 : }) {
111 0 : return _then(_Span(
112 0 : type: type == freezed
113 0 : ? _value.type
114 : : type // ignore: cast_nullable_to_non_nullable
115 : as String,
116 0 : end: end == freezed
117 0 : ? _value.end
118 : : end // ignore: cast_nullable_to_non_nullable
119 : as int,
120 0 : start: start == freezed
121 0 : ? _value.start
122 : : start // ignore: cast_nullable_to_non_nullable
123 : as int,
124 : ));
125 : }
126 : }
127 :
128 : /// @nodoc
129 : @JsonSerializable()
130 : class _$_Span implements _Span {
131 1 : _$_Span({required this.type, required this.end, required this.start});
132 :
133 1 : factory _$_Span.fromJson(Map<String, dynamic> json) =>
134 1 : _$_$_SpanFromJson(json);
135 :
136 : @override
137 : final String type;
138 : @override
139 : final int end;
140 : @override
141 : final int start;
142 :
143 0 : @override
144 : String toString() {
145 0 : return 'Span(type: $type, end: $end, start: $start)';
146 : }
147 :
148 0 : @override
149 : bool operator ==(dynamic other) {
150 : return identical(this, other) ||
151 0 : (other is _Span &&
152 0 : (identical(other.type, type) ||
153 0 : const DeepCollectionEquality().equals(other.type, type)) &&
154 0 : (identical(other.end, end) ||
155 0 : const DeepCollectionEquality().equals(other.end, end)) &&
156 0 : (identical(other.start, start) ||
157 0 : const DeepCollectionEquality().equals(other.start, start)));
158 : }
159 :
160 0 : @override
161 : int get hashCode =>
162 0 : runtimeType.hashCode ^
163 0 : const DeepCollectionEquality().hash(type) ^
164 0 : const DeepCollectionEquality().hash(end) ^
165 0 : const DeepCollectionEquality().hash(start);
166 :
167 0 : @JsonKey(ignore: true)
168 : @override
169 : _$SpanCopyWith<_Span> get copyWith =>
170 0 : __$SpanCopyWithImpl<_Span>(this, _$identity);
171 :
172 0 : @override
173 : Map<String, dynamic> toJson() {
174 0 : return _$_$_SpanToJson(this);
175 : }
176 : }
177 :
178 : abstract class _Span implements Span {
179 : factory _Span({required String type, required int end, required int start}) =
180 : _$_Span;
181 :
182 : factory _Span.fromJson(Map<String, dynamic> json) = _$_Span.fromJson;
183 :
184 0 : @override
185 0 : String get type => throw _privateConstructorUsedError;
186 0 : @override
187 0 : int get end => throw _privateConstructorUsedError;
188 0 : @override
189 0 : int get start => throw _privateConstructorUsedError;
190 0 : @override
191 : @JsonKey(ignore: true)
192 0 : _$SpanCopyWith<_Span> get copyWith => throw _privateConstructorUsedError;
193 : }
|