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