| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089 |
- // coverage:ignore-file
- // GENERATED CODE - DO NOT MODIFY BY HAND
- // ignore_for_file: type=lint
- // 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
- part of 'banner_list.dart';
- // **************************************************************************
- // FreezedGenerator
- // **************************************************************************
- T _$identity<T>(T value) => value;
- final _privateConstructorUsedError = UnsupportedError(
- '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',
- );
- BannerList _$BannerListFromJson(Map<String, dynamic> json) {
- return _BannerList.fromJson(json);
- }
- /// @nodoc
- mixin _$BannerList {
- Location? get location => throw _privateConstructorUsedError;
- Banner? get bannerInfo => throw _privateConstructorUsedError;
- List<Banner>? get list => throw _privateConstructorUsedError;
- /// Serializes this BannerList to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of BannerList
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $BannerListCopyWith<BannerList> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $BannerListCopyWith<$Res> {
- factory $BannerListCopyWith(
- BannerList value,
- $Res Function(BannerList) then,
- ) = _$BannerListCopyWithImpl<$Res, BannerList>;
- @useResult
- $Res call({Location? location, Banner? bannerInfo, List<Banner>? list});
- $LocationCopyWith<$Res>? get location;
- $BannerCopyWith<$Res>? get bannerInfo;
- }
- /// @nodoc
- class _$BannerListCopyWithImpl<$Res, $Val extends BannerList>
- implements $BannerListCopyWith<$Res> {
- _$BannerListCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of BannerList
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? location = freezed,
- Object? bannerInfo = freezed,
- Object? list = freezed,
- }) {
- return _then(
- _value.copyWith(
- location: freezed == location
- ? _value.location
- : location // ignore: cast_nullable_to_non_nullable
- as Location?,
- bannerInfo: freezed == bannerInfo
- ? _value.bannerInfo
- : bannerInfo // ignore: cast_nullable_to_non_nullable
- as Banner?,
- list: freezed == list
- ? _value.list
- : list // ignore: cast_nullable_to_non_nullable
- as List<Banner>?,
- )
- as $Val,
- );
- }
- /// Create a copy of BannerList
- /// with the given fields replaced by the non-null parameter values.
- @override
- @pragma('vm:prefer-inline')
- $LocationCopyWith<$Res>? get location {
- if (_value.location == null) {
- return null;
- }
- return $LocationCopyWith<$Res>(_value.location!, (value) {
- return _then(_value.copyWith(location: value) as $Val);
- });
- }
- /// Create a copy of BannerList
- /// with the given fields replaced by the non-null parameter values.
- @override
- @pragma('vm:prefer-inline')
- $BannerCopyWith<$Res>? get bannerInfo {
- if (_value.bannerInfo == null) {
- return null;
- }
- return $BannerCopyWith<$Res>(_value.bannerInfo!, (value) {
- return _then(_value.copyWith(bannerInfo: value) as $Val);
- });
- }
- }
- /// @nodoc
- abstract class _$$BannerListImplCopyWith<$Res>
- implements $BannerListCopyWith<$Res> {
- factory _$$BannerListImplCopyWith(
- _$BannerListImpl value,
- $Res Function(_$BannerListImpl) then,
- ) = __$$BannerListImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({Location? location, Banner? bannerInfo, List<Banner>? list});
- @override
- $LocationCopyWith<$Res>? get location;
- @override
- $BannerCopyWith<$Res>? get bannerInfo;
- }
- /// @nodoc
- class __$$BannerListImplCopyWithImpl<$Res>
- extends _$BannerListCopyWithImpl<$Res, _$BannerListImpl>
- implements _$$BannerListImplCopyWith<$Res> {
- __$$BannerListImplCopyWithImpl(
- _$BannerListImpl _value,
- $Res Function(_$BannerListImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of BannerList
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? location = freezed,
- Object? bannerInfo = freezed,
- Object? list = freezed,
- }) {
- return _then(
- _$BannerListImpl(
- location: freezed == location
- ? _value.location
- : location // ignore: cast_nullable_to_non_nullable
- as Location?,
- bannerInfo: freezed == bannerInfo
- ? _value.bannerInfo
- : bannerInfo // ignore: cast_nullable_to_non_nullable
- as Banner?,
- list: freezed == list
- ? _value._list
- : list // ignore: cast_nullable_to_non_nullable
- as List<Banner>?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$BannerListImpl with DiagnosticableTreeMixin implements _BannerList {
- const _$BannerListImpl({
- this.location,
- this.bannerInfo,
- final List<Banner>? list,
- }) : _list = list;
- factory _$BannerListImpl.fromJson(Map<String, dynamic> json) =>
- _$$BannerListImplFromJson(json);
- @override
- final Location? location;
- @override
- final Banner? bannerInfo;
- final List<Banner>? _list;
- @override
- List<Banner>? get list {
- final value = _list;
- if (value == null) return null;
- if (_list is EqualUnmodifiableListView) return _list;
- // ignore: implicit_dynamic_type
- return EqualUnmodifiableListView(value);
- }
- @override
- String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
- return 'BannerList(location: $location, bannerInfo: $bannerInfo, list: $list)';
- }
- @override
- void debugFillProperties(DiagnosticPropertiesBuilder properties) {
- super.debugFillProperties(properties);
- properties
- ..add(DiagnosticsProperty('type', 'BannerList'))
- ..add(DiagnosticsProperty('location', location))
- ..add(DiagnosticsProperty('bannerInfo', bannerInfo))
- ..add(DiagnosticsProperty('list', list));
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$BannerListImpl &&
- (identical(other.location, location) ||
- other.location == location) &&
- (identical(other.bannerInfo, bannerInfo) ||
- other.bannerInfo == bannerInfo) &&
- const DeepCollectionEquality().equals(other._list, _list));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(
- runtimeType,
- location,
- bannerInfo,
- const DeepCollectionEquality().hash(_list),
- );
- /// Create a copy of BannerList
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$BannerListImplCopyWith<_$BannerListImpl> get copyWith =>
- __$$BannerListImplCopyWithImpl<_$BannerListImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$BannerListImplToJson(this);
- }
- }
- abstract class _BannerList implements BannerList {
- const factory _BannerList({
- final Location? location,
- final Banner? bannerInfo,
- final List<Banner>? list,
- }) = _$BannerListImpl;
- factory _BannerList.fromJson(Map<String, dynamic> json) =
- _$BannerListImpl.fromJson;
- @override
- Location? get location;
- @override
- Banner? get bannerInfo;
- @override
- List<Banner>? get list;
- /// Create a copy of BannerList
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$BannerListImplCopyWith<_$BannerListImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- Location _$LocationFromJson(Map<String, dynamic> json) {
- return _Location.fromJson(json);
- }
- /// @nodoc
- mixin _$Location {
- int? get id => throw _privateConstructorUsedError;
- String? get name => throw _privateConstructorUsedError;
- String? get code => throw _privateConstructorUsedError;
- String? get icon => throw _privateConstructorUsedError;
- String? get country => throw _privateConstructorUsedError;
- int? get sort => throw _privateConstructorUsedError;
- Coordinates? get coordinates => throw _privateConstructorUsedError;
- int? get userLevel => throw _privateConstructorUsedError;
- bool? get isTrial => throw _privateConstructorUsedError;
- bool? get showGDPR => throw _privateConstructorUsedError;
- /// Serializes this Location to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of Location
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $LocationCopyWith<Location> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $LocationCopyWith<$Res> {
- factory $LocationCopyWith(Location value, $Res Function(Location) then) =
- _$LocationCopyWithImpl<$Res, Location>;
- @useResult
- $Res call({
- int? id,
- String? name,
- String? code,
- String? icon,
- String? country,
- int? sort,
- Coordinates? coordinates,
- int? userLevel,
- bool? isTrial,
- bool? showGDPR,
- });
- $CoordinatesCopyWith<$Res>? get coordinates;
- }
- /// @nodoc
- class _$LocationCopyWithImpl<$Res, $Val extends Location>
- implements $LocationCopyWith<$Res> {
- _$LocationCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of Location
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? id = freezed,
- Object? name = freezed,
- Object? code = freezed,
- Object? icon = freezed,
- Object? country = freezed,
- Object? sort = freezed,
- Object? coordinates = freezed,
- Object? userLevel = freezed,
- Object? isTrial = freezed,
- Object? showGDPR = freezed,
- }) {
- return _then(
- _value.copyWith(
- id: freezed == id
- ? _value.id
- : id // ignore: cast_nullable_to_non_nullable
- as int?,
- name: freezed == name
- ? _value.name
- : name // ignore: cast_nullable_to_non_nullable
- as String?,
- code: freezed == code
- ? _value.code
- : code // ignore: cast_nullable_to_non_nullable
- as String?,
- icon: freezed == icon
- ? _value.icon
- : icon // ignore: cast_nullable_to_non_nullable
- as String?,
- country: freezed == country
- ? _value.country
- : country // ignore: cast_nullable_to_non_nullable
- as String?,
- sort: freezed == sort
- ? _value.sort
- : sort // ignore: cast_nullable_to_non_nullable
- as int?,
- coordinates: freezed == coordinates
- ? _value.coordinates
- : coordinates // ignore: cast_nullable_to_non_nullable
- as Coordinates?,
- userLevel: freezed == userLevel
- ? _value.userLevel
- : userLevel // ignore: cast_nullable_to_non_nullable
- as int?,
- isTrial: freezed == isTrial
- ? _value.isTrial
- : isTrial // ignore: cast_nullable_to_non_nullable
- as bool?,
- showGDPR: freezed == showGDPR
- ? _value.showGDPR
- : showGDPR // ignore: cast_nullable_to_non_nullable
- as bool?,
- )
- as $Val,
- );
- }
- /// Create a copy of Location
- /// with the given fields replaced by the non-null parameter values.
- @override
- @pragma('vm:prefer-inline')
- $CoordinatesCopyWith<$Res>? get coordinates {
- if (_value.coordinates == null) {
- return null;
- }
- return $CoordinatesCopyWith<$Res>(_value.coordinates!, (value) {
- return _then(_value.copyWith(coordinates: value) as $Val);
- });
- }
- }
- /// @nodoc
- abstract class _$$LocationImplCopyWith<$Res>
- implements $LocationCopyWith<$Res> {
- factory _$$LocationImplCopyWith(
- _$LocationImpl value,
- $Res Function(_$LocationImpl) then,
- ) = __$$LocationImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({
- int? id,
- String? name,
- String? code,
- String? icon,
- String? country,
- int? sort,
- Coordinates? coordinates,
- int? userLevel,
- bool? isTrial,
- bool? showGDPR,
- });
- @override
- $CoordinatesCopyWith<$Res>? get coordinates;
- }
- /// @nodoc
- class __$$LocationImplCopyWithImpl<$Res>
- extends _$LocationCopyWithImpl<$Res, _$LocationImpl>
- implements _$$LocationImplCopyWith<$Res> {
- __$$LocationImplCopyWithImpl(
- _$LocationImpl _value,
- $Res Function(_$LocationImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of Location
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? id = freezed,
- Object? name = freezed,
- Object? code = freezed,
- Object? icon = freezed,
- Object? country = freezed,
- Object? sort = freezed,
- Object? coordinates = freezed,
- Object? userLevel = freezed,
- Object? isTrial = freezed,
- Object? showGDPR = freezed,
- }) {
- return _then(
- _$LocationImpl(
- id: freezed == id
- ? _value.id
- : id // ignore: cast_nullable_to_non_nullable
- as int?,
- name: freezed == name
- ? _value.name
- : name // ignore: cast_nullable_to_non_nullable
- as String?,
- code: freezed == code
- ? _value.code
- : code // ignore: cast_nullable_to_non_nullable
- as String?,
- icon: freezed == icon
- ? _value.icon
- : icon // ignore: cast_nullable_to_non_nullable
- as String?,
- country: freezed == country
- ? _value.country
- : country // ignore: cast_nullable_to_non_nullable
- as String?,
- sort: freezed == sort
- ? _value.sort
- : sort // ignore: cast_nullable_to_non_nullable
- as int?,
- coordinates: freezed == coordinates
- ? _value.coordinates
- : coordinates // ignore: cast_nullable_to_non_nullable
- as Coordinates?,
- userLevel: freezed == userLevel
- ? _value.userLevel
- : userLevel // ignore: cast_nullable_to_non_nullable
- as int?,
- isTrial: freezed == isTrial
- ? _value.isTrial
- : isTrial // ignore: cast_nullable_to_non_nullable
- as bool?,
- showGDPR: freezed == showGDPR
- ? _value.showGDPR
- : showGDPR // ignore: cast_nullable_to_non_nullable
- as bool?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$LocationImpl with DiagnosticableTreeMixin implements _Location {
- const _$LocationImpl({
- this.id,
- this.name,
- this.code,
- this.icon,
- this.country,
- this.sort,
- this.coordinates,
- this.userLevel,
- this.isTrial,
- this.showGDPR,
- });
- factory _$LocationImpl.fromJson(Map<String, dynamic> json) =>
- _$$LocationImplFromJson(json);
- @override
- final int? id;
- @override
- final String? name;
- @override
- final String? code;
- @override
- final String? icon;
- @override
- final String? country;
- @override
- final int? sort;
- @override
- final Coordinates? coordinates;
- @override
- final int? userLevel;
- @override
- final bool? isTrial;
- @override
- final bool? showGDPR;
- @override
- String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
- return 'Location(id: $id, name: $name, code: $code, icon: $icon, country: $country, sort: $sort, coordinates: $coordinates, userLevel: $userLevel, isTrial: $isTrial, showGDPR: $showGDPR)';
- }
- @override
- void debugFillProperties(DiagnosticPropertiesBuilder properties) {
- super.debugFillProperties(properties);
- properties
- ..add(DiagnosticsProperty('type', 'Location'))
- ..add(DiagnosticsProperty('id', id))
- ..add(DiagnosticsProperty('name', name))
- ..add(DiagnosticsProperty('code', code))
- ..add(DiagnosticsProperty('icon', icon))
- ..add(DiagnosticsProperty('country', country))
- ..add(DiagnosticsProperty('sort', sort))
- ..add(DiagnosticsProperty('coordinates', coordinates))
- ..add(DiagnosticsProperty('userLevel', userLevel))
- ..add(DiagnosticsProperty('isTrial', isTrial))
- ..add(DiagnosticsProperty('showGDPR', showGDPR));
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$LocationImpl &&
- (identical(other.id, id) || other.id == id) &&
- (identical(other.name, name) || other.name == name) &&
- (identical(other.code, code) || other.code == code) &&
- (identical(other.icon, icon) || other.icon == icon) &&
- (identical(other.country, country) || other.country == country) &&
- (identical(other.sort, sort) || other.sort == sort) &&
- (identical(other.coordinates, coordinates) ||
- other.coordinates == coordinates) &&
- (identical(other.userLevel, userLevel) ||
- other.userLevel == userLevel) &&
- (identical(other.isTrial, isTrial) || other.isTrial == isTrial) &&
- (identical(other.showGDPR, showGDPR) ||
- other.showGDPR == showGDPR));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(
- runtimeType,
- id,
- name,
- code,
- icon,
- country,
- sort,
- coordinates,
- userLevel,
- isTrial,
- showGDPR,
- );
- /// Create a copy of Location
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$LocationImplCopyWith<_$LocationImpl> get copyWith =>
- __$$LocationImplCopyWithImpl<_$LocationImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$LocationImplToJson(this);
- }
- }
- abstract class _Location implements Location {
- const factory _Location({
- final int? id,
- final String? name,
- final String? code,
- final String? icon,
- final String? country,
- final int? sort,
- final Coordinates? coordinates,
- final int? userLevel,
- final bool? isTrial,
- final bool? showGDPR,
- }) = _$LocationImpl;
- factory _Location.fromJson(Map<String, dynamic> json) =
- _$LocationImpl.fromJson;
- @override
- int? get id;
- @override
- String? get name;
- @override
- String? get code;
- @override
- String? get icon;
- @override
- String? get country;
- @override
- int? get sort;
- @override
- Coordinates? get coordinates;
- @override
- int? get userLevel;
- @override
- bool? get isTrial;
- @override
- bool? get showGDPR;
- /// Create a copy of Location
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$LocationImplCopyWith<_$LocationImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- Coordinates _$CoordinatesFromJson(Map<String, dynamic> json) {
- return _Coordinates.fromJson(json);
- }
- /// @nodoc
- mixin _$Coordinates {
- int? get lat => throw _privateConstructorUsedError;
- int? get lng => throw _privateConstructorUsedError;
- /// Serializes this Coordinates to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of Coordinates
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $CoordinatesCopyWith<Coordinates> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $CoordinatesCopyWith<$Res> {
- factory $CoordinatesCopyWith(
- Coordinates value,
- $Res Function(Coordinates) then,
- ) = _$CoordinatesCopyWithImpl<$Res, Coordinates>;
- @useResult
- $Res call({int? lat, int? lng});
- }
- /// @nodoc
- class _$CoordinatesCopyWithImpl<$Res, $Val extends Coordinates>
- implements $CoordinatesCopyWith<$Res> {
- _$CoordinatesCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of Coordinates
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? lat = freezed, Object? lng = freezed}) {
- return _then(
- _value.copyWith(
- lat: freezed == lat
- ? _value.lat
- : lat // ignore: cast_nullable_to_non_nullable
- as int?,
- lng: freezed == lng
- ? _value.lng
- : lng // ignore: cast_nullable_to_non_nullable
- as int?,
- )
- as $Val,
- );
- }
- }
- /// @nodoc
- abstract class _$$CoordinatesImplCopyWith<$Res>
- implements $CoordinatesCopyWith<$Res> {
- factory _$$CoordinatesImplCopyWith(
- _$CoordinatesImpl value,
- $Res Function(_$CoordinatesImpl) then,
- ) = __$$CoordinatesImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({int? lat, int? lng});
- }
- /// @nodoc
- class __$$CoordinatesImplCopyWithImpl<$Res>
- extends _$CoordinatesCopyWithImpl<$Res, _$CoordinatesImpl>
- implements _$$CoordinatesImplCopyWith<$Res> {
- __$$CoordinatesImplCopyWithImpl(
- _$CoordinatesImpl _value,
- $Res Function(_$CoordinatesImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of Coordinates
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? lat = freezed, Object? lng = freezed}) {
- return _then(
- _$CoordinatesImpl(
- lat: freezed == lat
- ? _value.lat
- : lat // ignore: cast_nullable_to_non_nullable
- as int?,
- lng: freezed == lng
- ? _value.lng
- : lng // ignore: cast_nullable_to_non_nullable
- as int?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$CoordinatesImpl with DiagnosticableTreeMixin implements _Coordinates {
- const _$CoordinatesImpl({this.lat, this.lng});
- factory _$CoordinatesImpl.fromJson(Map<String, dynamic> json) =>
- _$$CoordinatesImplFromJson(json);
- @override
- final int? lat;
- @override
- final int? lng;
- @override
- String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
- return 'Coordinates(lat: $lat, lng: $lng)';
- }
- @override
- void debugFillProperties(DiagnosticPropertiesBuilder properties) {
- super.debugFillProperties(properties);
- properties
- ..add(DiagnosticsProperty('type', 'Coordinates'))
- ..add(DiagnosticsProperty('lat', lat))
- ..add(DiagnosticsProperty('lng', lng));
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$CoordinatesImpl &&
- (identical(other.lat, lat) || other.lat == lat) &&
- (identical(other.lng, lng) || other.lng == lng));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(runtimeType, lat, lng);
- /// Create a copy of Coordinates
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$CoordinatesImplCopyWith<_$CoordinatesImpl> get copyWith =>
- __$$CoordinatesImplCopyWithImpl<_$CoordinatesImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$CoordinatesImplToJson(this);
- }
- }
- abstract class _Coordinates implements Coordinates {
- const factory _Coordinates({final int? lat, final int? lng}) =
- _$CoordinatesImpl;
- factory _Coordinates.fromJson(Map<String, dynamic> json) =
- _$CoordinatesImpl.fromJson;
- @override
- int? get lat;
- @override
- int? get lng;
- /// Create a copy of Coordinates
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$CoordinatesImplCopyWith<_$CoordinatesImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- Banner _$BannerFromJson(Map<String, dynamic> json) {
- return _Banner.fromJson(json);
- }
- /// @nodoc
- mixin _$Banner {
- String? get action => throw _privateConstructorUsedError;
- String? get img => throw _privateConstructorUsedError;
- String? get title => throw _privateConstructorUsedError;
- String? get content => throw _privateConstructorUsedError;
- String? get data => throw _privateConstructorUsedError;
- /// Serializes this Banner to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of Banner
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $BannerCopyWith<Banner> get copyWith => throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $BannerCopyWith<$Res> {
- factory $BannerCopyWith(Banner value, $Res Function(Banner) then) =
- _$BannerCopyWithImpl<$Res, Banner>;
- @useResult
- $Res call({
- String? action,
- String? img,
- String? title,
- String? content,
- String? data,
- });
- }
- /// @nodoc
- class _$BannerCopyWithImpl<$Res, $Val extends Banner>
- implements $BannerCopyWith<$Res> {
- _$BannerCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of Banner
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? action = freezed,
- Object? img = freezed,
- Object? title = freezed,
- Object? content = freezed,
- Object? data = freezed,
- }) {
- return _then(
- _value.copyWith(
- action: freezed == action
- ? _value.action
- : action // ignore: cast_nullable_to_non_nullable
- as String?,
- img: freezed == img
- ? _value.img
- : img // ignore: cast_nullable_to_non_nullable
- as String?,
- title: freezed == title
- ? _value.title
- : title // ignore: cast_nullable_to_non_nullable
- as String?,
- content: freezed == content
- ? _value.content
- : content // ignore: cast_nullable_to_non_nullable
- as String?,
- data: freezed == data
- ? _value.data
- : data // ignore: cast_nullable_to_non_nullable
- as String?,
- )
- as $Val,
- );
- }
- }
- /// @nodoc
- abstract class _$$BannerImplCopyWith<$Res> implements $BannerCopyWith<$Res> {
- factory _$$BannerImplCopyWith(
- _$BannerImpl value,
- $Res Function(_$BannerImpl) then,
- ) = __$$BannerImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({
- String? action,
- String? img,
- String? title,
- String? content,
- String? data,
- });
- }
- /// @nodoc
- class __$$BannerImplCopyWithImpl<$Res>
- extends _$BannerCopyWithImpl<$Res, _$BannerImpl>
- implements _$$BannerImplCopyWith<$Res> {
- __$$BannerImplCopyWithImpl(
- _$BannerImpl _value,
- $Res Function(_$BannerImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of Banner
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? action = freezed,
- Object? img = freezed,
- Object? title = freezed,
- Object? content = freezed,
- Object? data = freezed,
- }) {
- return _then(
- _$BannerImpl(
- action: freezed == action
- ? _value.action
- : action // ignore: cast_nullable_to_non_nullable
- as String?,
- img: freezed == img
- ? _value.img
- : img // ignore: cast_nullable_to_non_nullable
- as String?,
- title: freezed == title
- ? _value.title
- : title // ignore: cast_nullable_to_non_nullable
- as String?,
- content: freezed == content
- ? _value.content
- : content // ignore: cast_nullable_to_non_nullable
- as String?,
- data: freezed == data
- ? _value.data
- : data // ignore: cast_nullable_to_non_nullable
- as String?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$BannerImpl with DiagnosticableTreeMixin implements _Banner {
- const _$BannerImpl({
- this.action,
- this.img,
- this.title,
- this.content,
- this.data,
- });
- factory _$BannerImpl.fromJson(Map<String, dynamic> json) =>
- _$$BannerImplFromJson(json);
- @override
- final String? action;
- @override
- final String? img;
- @override
- final String? title;
- @override
- final String? content;
- @override
- final String? data;
- @override
- String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
- return 'Banner(action: $action, img: $img, title: $title, content: $content, data: $data)';
- }
- @override
- void debugFillProperties(DiagnosticPropertiesBuilder properties) {
- super.debugFillProperties(properties);
- properties
- ..add(DiagnosticsProperty('type', 'Banner'))
- ..add(DiagnosticsProperty('action', action))
- ..add(DiagnosticsProperty('img', img))
- ..add(DiagnosticsProperty('title', title))
- ..add(DiagnosticsProperty('content', content))
- ..add(DiagnosticsProperty('data', data));
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$BannerImpl &&
- (identical(other.action, action) || other.action == action) &&
- (identical(other.img, img) || other.img == img) &&
- (identical(other.title, title) || other.title == title) &&
- (identical(other.content, content) || other.content == content) &&
- (identical(other.data, data) || other.data == data));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode =>
- Object.hash(runtimeType, action, img, title, content, data);
- /// Create a copy of Banner
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$BannerImplCopyWith<_$BannerImpl> get copyWith =>
- __$$BannerImplCopyWithImpl<_$BannerImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$BannerImplToJson(this);
- }
- }
- abstract class _Banner implements Banner {
- const factory _Banner({
- final String? action,
- final String? img,
- final String? title,
- final String? content,
- final String? data,
- }) = _$BannerImpl;
- factory _Banner.fromJson(Map<String, dynamic> json) = _$BannerImpl.fromJson;
- @override
- String? get action;
- @override
- String? get img;
- @override
- String? get title;
- @override
- String? get content;
- @override
- String? get data;
- /// Create a copy of Banner
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$BannerImplCopyWith<_$BannerImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
|