|
| 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 | + |
| 6 | +part of 'nft_information.dart'; |
| 7 | + |
| 8 | +// ************************************************************************** |
| 9 | +// FreezedGenerator |
| 10 | +// ************************************************************************** |
| 11 | + |
| 12 | +T _$identity<T>(T value) => value; |
| 13 | + |
| 14 | +final _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 | +NftInformation _$NftInformationFromJson(Map<String, dynamic> json) { |
| 18 | + return _NftInformation.fromJson(json); |
| 19 | +} |
| 20 | + |
| 21 | +/// @nodoc |
| 22 | +mixin _$NftInformation { |
| 23 | + String? get marketplaceUrl => throw _privateConstructorUsedError; |
| 24 | + List<Address>? get defaultCollections => throw _privateConstructorUsedError; |
| 25 | + |
| 26 | + /// Serializes this NftInformation to a JSON map. |
| 27 | + Map<String, dynamic> toJson() => throw _privateConstructorUsedError; |
| 28 | + |
| 29 | + /// Create a copy of NftInformation |
| 30 | + /// with the given fields replaced by the non-null parameter values. |
| 31 | + @JsonKey(includeFromJson: false, includeToJson: false) |
| 32 | + $NftInformationCopyWith<NftInformation> get copyWith => |
| 33 | + throw _privateConstructorUsedError; |
| 34 | +} |
| 35 | + |
| 36 | +/// @nodoc |
| 37 | +abstract class $NftInformationCopyWith<$Res> { |
| 38 | + factory $NftInformationCopyWith( |
| 39 | + NftInformation value, $Res Function(NftInformation) then) = |
| 40 | + _$NftInformationCopyWithImpl<$Res, NftInformation>; |
| 41 | + @useResult |
| 42 | + $Res call({String? marketplaceUrl, List<Address>? defaultCollections}); |
| 43 | +} |
| 44 | + |
| 45 | +/// @nodoc |
| 46 | +class _$NftInformationCopyWithImpl<$Res, $Val extends NftInformation> |
| 47 | + implements $NftInformationCopyWith<$Res> { |
| 48 | + _$NftInformationCopyWithImpl(this._value, this._then); |
| 49 | + |
| 50 | + // ignore: unused_field |
| 51 | + final $Val _value; |
| 52 | + // ignore: unused_field |
| 53 | + final $Res Function($Val) _then; |
| 54 | + |
| 55 | + /// Create a copy of NftInformation |
| 56 | + /// with the given fields replaced by the non-null parameter values. |
| 57 | + @pragma('vm:prefer-inline') |
| 58 | + @override |
| 59 | + $Res call({ |
| 60 | + Object? marketplaceUrl = freezed, |
| 61 | + Object? defaultCollections = freezed, |
| 62 | + }) { |
| 63 | + return _then(_value.copyWith( |
| 64 | + marketplaceUrl: freezed == marketplaceUrl |
| 65 | + ? _value.marketplaceUrl |
| 66 | + : marketplaceUrl // ignore: cast_nullable_to_non_nullable |
| 67 | + as String?, |
| 68 | + defaultCollections: freezed == defaultCollections |
| 69 | + ? _value.defaultCollections |
| 70 | + : defaultCollections // ignore: cast_nullable_to_non_nullable |
| 71 | + as List<Address>?, |
| 72 | + ) as $Val); |
| 73 | + } |
| 74 | +} |
| 75 | + |
| 76 | +/// @nodoc |
| 77 | +abstract class _$$NftInformationImplCopyWith<$Res> |
| 78 | + implements $NftInformationCopyWith<$Res> { |
| 79 | + factory _$$NftInformationImplCopyWith(_$NftInformationImpl value, |
| 80 | + $Res Function(_$NftInformationImpl) then) = |
| 81 | + __$$NftInformationImplCopyWithImpl<$Res>; |
| 82 | + @override |
| 83 | + @useResult |
| 84 | + $Res call({String? marketplaceUrl, List<Address>? defaultCollections}); |
| 85 | +} |
| 86 | + |
| 87 | +/// @nodoc |
| 88 | +class __$$NftInformationImplCopyWithImpl<$Res> |
| 89 | + extends _$NftInformationCopyWithImpl<$Res, _$NftInformationImpl> |
| 90 | + implements _$$NftInformationImplCopyWith<$Res> { |
| 91 | + __$$NftInformationImplCopyWithImpl( |
| 92 | + _$NftInformationImpl _value, $Res Function(_$NftInformationImpl) _then) |
| 93 | + : super(_value, _then); |
| 94 | + |
| 95 | + /// Create a copy of NftInformation |
| 96 | + /// with the given fields replaced by the non-null parameter values. |
| 97 | + @pragma('vm:prefer-inline') |
| 98 | + @override |
| 99 | + $Res call({ |
| 100 | + Object? marketplaceUrl = freezed, |
| 101 | + Object? defaultCollections = freezed, |
| 102 | + }) { |
| 103 | + return _then(_$NftInformationImpl( |
| 104 | + marketplaceUrl: freezed == marketplaceUrl |
| 105 | + ? _value.marketplaceUrl |
| 106 | + : marketplaceUrl // ignore: cast_nullable_to_non_nullable |
| 107 | + as String?, |
| 108 | + defaultCollections: freezed == defaultCollections |
| 109 | + ? _value._defaultCollections |
| 110 | + : defaultCollections // ignore: cast_nullable_to_non_nullable |
| 111 | + as List<Address>?, |
| 112 | + )); |
| 113 | + } |
| 114 | +} |
| 115 | + |
| 116 | +/// @nodoc |
| 117 | +@JsonSerializable() |
| 118 | +class _$NftInformationImpl implements _NftInformation { |
| 119 | + _$NftInformationImpl( |
| 120 | + {this.marketplaceUrl, final List<Address>? defaultCollections}) |
| 121 | + : _defaultCollections = defaultCollections; |
| 122 | + |
| 123 | + factory _$NftInformationImpl.fromJson(Map<String, dynamic> json) => |
| 124 | + _$$NftInformationImplFromJson(json); |
| 125 | + |
| 126 | + @override |
| 127 | + final String? marketplaceUrl; |
| 128 | + final List<Address>? _defaultCollections; |
| 129 | + @override |
| 130 | + List<Address>? get defaultCollections { |
| 131 | + final value = _defaultCollections; |
| 132 | + if (value == null) return null; |
| 133 | + if (_defaultCollections is EqualUnmodifiableListView) |
| 134 | + return _defaultCollections; |
| 135 | + // ignore: implicit_dynamic_type |
| 136 | + return EqualUnmodifiableListView(value); |
| 137 | + } |
| 138 | + |
| 139 | + @override |
| 140 | + String toString() { |
| 141 | + return 'NftInformation(marketplaceUrl: $marketplaceUrl, defaultCollections: $defaultCollections)'; |
| 142 | + } |
| 143 | + |
| 144 | + @override |
| 145 | + bool operator ==(Object other) { |
| 146 | + return identical(this, other) || |
| 147 | + (other.runtimeType == runtimeType && |
| 148 | + other is _$NftInformationImpl && |
| 149 | + (identical(other.marketplaceUrl, marketplaceUrl) || |
| 150 | + other.marketplaceUrl == marketplaceUrl) && |
| 151 | + const DeepCollectionEquality() |
| 152 | + .equals(other._defaultCollections, _defaultCollections)); |
| 153 | + } |
| 154 | + |
| 155 | + @JsonKey(includeFromJson: false, includeToJson: false) |
| 156 | + @override |
| 157 | + int get hashCode => Object.hash(runtimeType, marketplaceUrl, |
| 158 | + const DeepCollectionEquality().hash(_defaultCollections)); |
| 159 | + |
| 160 | + /// Create a copy of NftInformation |
| 161 | + /// with the given fields replaced by the non-null parameter values. |
| 162 | + @JsonKey(includeFromJson: false, includeToJson: false) |
| 163 | + @override |
| 164 | + @pragma('vm:prefer-inline') |
| 165 | + _$$NftInformationImplCopyWith<_$NftInformationImpl> get copyWith => |
| 166 | + __$$NftInformationImplCopyWithImpl<_$NftInformationImpl>( |
| 167 | + this, _$identity); |
| 168 | + |
| 169 | + @override |
| 170 | + Map<String, dynamic> toJson() { |
| 171 | + return _$$NftInformationImplToJson( |
| 172 | + this, |
| 173 | + ); |
| 174 | + } |
| 175 | +} |
| 176 | + |
| 177 | +abstract class _NftInformation implements NftInformation { |
| 178 | + factory _NftInformation( |
| 179 | + {final String? marketplaceUrl, |
| 180 | + final List<Address>? defaultCollections}) = _$NftInformationImpl; |
| 181 | + |
| 182 | + factory _NftInformation.fromJson(Map<String, dynamic> json) = |
| 183 | + _$NftInformationImpl.fromJson; |
| 184 | + |
| 185 | + @override |
| 186 | + String? get marketplaceUrl; |
| 187 | + @override |
| 188 | + List<Address>? get defaultCollections; |
| 189 | + |
| 190 | + /// Create a copy of NftInformation |
| 191 | + /// with the given fields replaced by the non-null parameter values. |
| 192 | + @override |
| 193 | + @JsonKey(includeFromJson: false, includeToJson: false) |
| 194 | + _$$NftInformationImplCopyWith<_$NftInformationImpl> get copyWith => |
| 195 | + throw _privateConstructorUsedError; |
| 196 | +} |
0 commit comments