| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387 |
- // 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 'groups.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',
- );
- Groups _$GroupsFromJson(Map<String, dynamic> json) {
- return _Groups.fromJson(json);
- }
- /// @nodoc
- mixin _$Groups {
- Normal? get normal => throw _privateConstructorUsedError;
- /// Serializes this Groups to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of Groups
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $GroupsCopyWith<Groups> get copyWith => throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $GroupsCopyWith<$Res> {
- factory $GroupsCopyWith(Groups value, $Res Function(Groups) then) =
- _$GroupsCopyWithImpl<$Res, Groups>;
- @useResult
- $Res call({Normal? normal});
- $NormalCopyWith<$Res>? get normal;
- }
- /// @nodoc
- class _$GroupsCopyWithImpl<$Res, $Val extends Groups>
- implements $GroupsCopyWith<$Res> {
- _$GroupsCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of Groups
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? normal = freezed}) {
- return _then(
- _value.copyWith(
- normal: freezed == normal
- ? _value.normal
- : normal // ignore: cast_nullable_to_non_nullable
- as Normal?,
- )
- as $Val,
- );
- }
- /// Create a copy of Groups
- /// with the given fields replaced by the non-null parameter values.
- @override
- @pragma('vm:prefer-inline')
- $NormalCopyWith<$Res>? get normal {
- if (_value.normal == null) {
- return null;
- }
- return $NormalCopyWith<$Res>(_value.normal!, (value) {
- return _then(_value.copyWith(normal: value) as $Val);
- });
- }
- }
- /// @nodoc
- abstract class _$$GroupsImplCopyWith<$Res> implements $GroupsCopyWith<$Res> {
- factory _$$GroupsImplCopyWith(
- _$GroupsImpl value,
- $Res Function(_$GroupsImpl) then,
- ) = __$$GroupsImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({Normal? normal});
- @override
- $NormalCopyWith<$Res>? get normal;
- }
- /// @nodoc
- class __$$GroupsImplCopyWithImpl<$Res>
- extends _$GroupsCopyWithImpl<$Res, _$GroupsImpl>
- implements _$$GroupsImplCopyWith<$Res> {
- __$$GroupsImplCopyWithImpl(
- _$GroupsImpl _value,
- $Res Function(_$GroupsImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of Groups
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? normal = freezed}) {
- return _then(
- _$GroupsImpl(
- normal: freezed == normal
- ? _value.normal
- : normal // ignore: cast_nullable_to_non_nullable
- as Normal?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$GroupsImpl with DiagnosticableTreeMixin implements _Groups {
- const _$GroupsImpl({this.normal});
- factory _$GroupsImpl.fromJson(Map<String, dynamic> json) =>
- _$$GroupsImplFromJson(json);
- @override
- final Normal? normal;
- @override
- String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
- return 'Groups(normal: $normal)';
- }
- @override
- void debugFillProperties(DiagnosticPropertiesBuilder properties) {
- super.debugFillProperties(properties);
- properties
- ..add(DiagnosticsProperty('type', 'Groups'))
- ..add(DiagnosticsProperty('normal', normal));
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$GroupsImpl &&
- (identical(other.normal, normal) || other.normal == normal));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(runtimeType, normal);
- /// Create a copy of Groups
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$GroupsImplCopyWith<_$GroupsImpl> get copyWith =>
- __$$GroupsImplCopyWithImpl<_$GroupsImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$GroupsImplToJson(this);
- }
- }
- abstract class _Groups implements Groups {
- const factory _Groups({final Normal? normal}) = _$GroupsImpl;
- factory _Groups.fromJson(Map<String, dynamic> json) = _$GroupsImpl.fromJson;
- @override
- Normal? get normal;
- /// Create a copy of Groups
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$GroupsImplCopyWith<_$GroupsImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- Normal _$NormalFromJson(Map<String, dynamic> json) {
- return _Normal.fromJson(json);
- }
- /// @nodoc
- mixin _$Normal {
- List<Tags>? get tags => throw _privateConstructorUsedError;
- List<LocationList>? get list => throw _privateConstructorUsedError;
- /// Serializes this Normal to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of Normal
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $NormalCopyWith<Normal> get copyWith => throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $NormalCopyWith<$Res> {
- factory $NormalCopyWith(Normal value, $Res Function(Normal) then) =
- _$NormalCopyWithImpl<$Res, Normal>;
- @useResult
- $Res call({List<Tags>? tags, List<LocationList>? list});
- }
- /// @nodoc
- class _$NormalCopyWithImpl<$Res, $Val extends Normal>
- implements $NormalCopyWith<$Res> {
- _$NormalCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of Normal
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? tags = freezed, Object? list = freezed}) {
- return _then(
- _value.copyWith(
- tags: freezed == tags
- ? _value.tags
- : tags // ignore: cast_nullable_to_non_nullable
- as List<Tags>?,
- list: freezed == list
- ? _value.list
- : list // ignore: cast_nullable_to_non_nullable
- as List<LocationList>?,
- )
- as $Val,
- );
- }
- }
- /// @nodoc
- abstract class _$$NormalImplCopyWith<$Res> implements $NormalCopyWith<$Res> {
- factory _$$NormalImplCopyWith(
- _$NormalImpl value,
- $Res Function(_$NormalImpl) then,
- ) = __$$NormalImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({List<Tags>? tags, List<LocationList>? list});
- }
- /// @nodoc
- class __$$NormalImplCopyWithImpl<$Res>
- extends _$NormalCopyWithImpl<$Res, _$NormalImpl>
- implements _$$NormalImplCopyWith<$Res> {
- __$$NormalImplCopyWithImpl(
- _$NormalImpl _value,
- $Res Function(_$NormalImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of Normal
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? tags = freezed, Object? list = freezed}) {
- return _then(
- _$NormalImpl(
- tags: freezed == tags
- ? _value._tags
- : tags // ignore: cast_nullable_to_non_nullable
- as List<Tags>?,
- list: freezed == list
- ? _value._list
- : list // ignore: cast_nullable_to_non_nullable
- as List<LocationList>?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$NormalImpl with DiagnosticableTreeMixin implements _Normal {
- const _$NormalImpl({final List<Tags>? tags, final List<LocationList>? list})
- : _tags = tags,
- _list = list;
- factory _$NormalImpl.fromJson(Map<String, dynamic> json) =>
- _$$NormalImplFromJson(json);
- final List<Tags>? _tags;
- @override
- List<Tags>? get tags {
- final value = _tags;
- if (value == null) return null;
- if (_tags is EqualUnmodifiableListView) return _tags;
- // ignore: implicit_dynamic_type
- return EqualUnmodifiableListView(value);
- }
- final List<LocationList>? _list;
- @override
- List<LocationList>? 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 'Normal(tags: $tags, list: $list)';
- }
- @override
- void debugFillProperties(DiagnosticPropertiesBuilder properties) {
- super.debugFillProperties(properties);
- properties
- ..add(DiagnosticsProperty('type', 'Normal'))
- ..add(DiagnosticsProperty('tags', tags))
- ..add(DiagnosticsProperty('list', list));
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$NormalImpl &&
- const DeepCollectionEquality().equals(other._tags, _tags) &&
- const DeepCollectionEquality().equals(other._list, _list));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(
- runtimeType,
- const DeepCollectionEquality().hash(_tags),
- const DeepCollectionEquality().hash(_list),
- );
- /// Create a copy of Normal
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$NormalImplCopyWith<_$NormalImpl> get copyWith =>
- __$$NormalImplCopyWithImpl<_$NormalImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$NormalImplToJson(this);
- }
- }
- abstract class _Normal implements Normal {
- const factory _Normal({
- final List<Tags>? tags,
- final List<LocationList>? list,
- }) = _$NormalImpl;
- factory _Normal.fromJson(Map<String, dynamic> json) = _$NormalImpl.fromJson;
- @override
- List<Tags>? get tags;
- @override
- List<LocationList>? get list;
- /// Create a copy of Normal
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$NormalImplCopyWith<_$NormalImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- Tags _$TagsFromJson(Map<String, dynamic> json) {
- return _Tags.fromJson(json);
- }
- /// @nodoc
- mixin _$Tags {
- int? get id => throw _privateConstructorUsedError;
- String? get name => throw _privateConstructorUsedError;
- String? get icon => throw _privateConstructorUsedError;
- int? get sort => throw _privateConstructorUsedError;
- /// Serializes this Tags to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of Tags
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $TagsCopyWith<Tags> get copyWith => throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $TagsCopyWith<$Res> {
- factory $TagsCopyWith(Tags value, $Res Function(Tags) then) =
- _$TagsCopyWithImpl<$Res, Tags>;
- @useResult
- $Res call({int? id, String? name, String? icon, int? sort});
- }
- /// @nodoc
- class _$TagsCopyWithImpl<$Res, $Val extends Tags>
- implements $TagsCopyWith<$Res> {
- _$TagsCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of Tags
- /// 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? icon = freezed,
- Object? sort = 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?,
- icon: freezed == icon
- ? _value.icon
- : icon // ignore: cast_nullable_to_non_nullable
- as String?,
- sort: freezed == sort
- ? _value.sort
- : sort // ignore: cast_nullable_to_non_nullable
- as int?,
- )
- as $Val,
- );
- }
- }
- /// @nodoc
- abstract class _$$TagsImplCopyWith<$Res> implements $TagsCopyWith<$Res> {
- factory _$$TagsImplCopyWith(
- _$TagsImpl value,
- $Res Function(_$TagsImpl) then,
- ) = __$$TagsImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({int? id, String? name, String? icon, int? sort});
- }
- /// @nodoc
- class __$$TagsImplCopyWithImpl<$Res>
- extends _$TagsCopyWithImpl<$Res, _$TagsImpl>
- implements _$$TagsImplCopyWith<$Res> {
- __$$TagsImplCopyWithImpl(_$TagsImpl _value, $Res Function(_$TagsImpl) _then)
- : super(_value, _then);
- /// Create a copy of Tags
- /// 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? icon = freezed,
- Object? sort = freezed,
- }) {
- return _then(
- _$TagsImpl(
- 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?,
- icon: freezed == icon
- ? _value.icon
- : icon // ignore: cast_nullable_to_non_nullable
- as String?,
- sort: freezed == sort
- ? _value.sort
- : sort // ignore: cast_nullable_to_non_nullable
- as int?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$TagsImpl with DiagnosticableTreeMixin implements _Tags {
- const _$TagsImpl({this.id, this.name, this.icon, this.sort});
- factory _$TagsImpl.fromJson(Map<String, dynamic> json) =>
- _$$TagsImplFromJson(json);
- @override
- final int? id;
- @override
- final String? name;
- @override
- final String? icon;
- @override
- final int? sort;
- @override
- String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
- return 'Tags(id: $id, name: $name, icon: $icon, sort: $sort)';
- }
- @override
- void debugFillProperties(DiagnosticPropertiesBuilder properties) {
- super.debugFillProperties(properties);
- properties
- ..add(DiagnosticsProperty('type', 'Tags'))
- ..add(DiagnosticsProperty('id', id))
- ..add(DiagnosticsProperty('name', name))
- ..add(DiagnosticsProperty('icon', icon))
- ..add(DiagnosticsProperty('sort', sort));
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$TagsImpl &&
- (identical(other.id, id) || other.id == id) &&
- (identical(other.name, name) || other.name == name) &&
- (identical(other.icon, icon) || other.icon == icon) &&
- (identical(other.sort, sort) || other.sort == sort));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(runtimeType, id, name, icon, sort);
- /// Create a copy of Tags
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$TagsImplCopyWith<_$TagsImpl> get copyWith =>
- __$$TagsImplCopyWithImpl<_$TagsImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$TagsImplToJson(this);
- }
- }
- abstract class _Tags implements Tags {
- const factory _Tags({
- final int? id,
- final String? name,
- final String? icon,
- final int? sort,
- }) = _$TagsImpl;
- factory _Tags.fromJson(Map<String, dynamic> json) = _$TagsImpl.fromJson;
- @override
- int? get id;
- @override
- String? get name;
- @override
- String? get icon;
- @override
- int? get sort;
- /// Create a copy of Tags
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$TagsImplCopyWith<_$TagsImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- LocationList _$LocationListFromJson(Map<String, dynamic> json) {
- return _LocationList.fromJson(json);
- }
- /// @nodoc
- mixin _$LocationList {
- int? get id => throw _privateConstructorUsedError;
- String? get name => throw _privateConstructorUsedError;
- String? get icon => throw _privateConstructorUsedError;
- int? get tag => throw _privateConstructorUsedError;
- List<Locations>? get locations => throw _privateConstructorUsedError;
- /// Serializes this LocationList to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of LocationList
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $LocationListCopyWith<LocationList> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $LocationListCopyWith<$Res> {
- factory $LocationListCopyWith(
- LocationList value,
- $Res Function(LocationList) then,
- ) = _$LocationListCopyWithImpl<$Res, LocationList>;
- @useResult
- $Res call({
- int? id,
- String? name,
- String? icon,
- int? tag,
- List<Locations>? locations,
- });
- }
- /// @nodoc
- class _$LocationListCopyWithImpl<$Res, $Val extends LocationList>
- implements $LocationListCopyWith<$Res> {
- _$LocationListCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of LocationList
- /// 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? icon = freezed,
- Object? tag = freezed,
- Object? locations = 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?,
- icon: freezed == icon
- ? _value.icon
- : icon // ignore: cast_nullable_to_non_nullable
- as String?,
- tag: freezed == tag
- ? _value.tag
- : tag // ignore: cast_nullable_to_non_nullable
- as int?,
- locations: freezed == locations
- ? _value.locations
- : locations // ignore: cast_nullable_to_non_nullable
- as List<Locations>?,
- )
- as $Val,
- );
- }
- }
- /// @nodoc
- abstract class _$$LocationListImplCopyWith<$Res>
- implements $LocationListCopyWith<$Res> {
- factory _$$LocationListImplCopyWith(
- _$LocationListImpl value,
- $Res Function(_$LocationListImpl) then,
- ) = __$$LocationListImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({
- int? id,
- String? name,
- String? icon,
- int? tag,
- List<Locations>? locations,
- });
- }
- /// @nodoc
- class __$$LocationListImplCopyWithImpl<$Res>
- extends _$LocationListCopyWithImpl<$Res, _$LocationListImpl>
- implements _$$LocationListImplCopyWith<$Res> {
- __$$LocationListImplCopyWithImpl(
- _$LocationListImpl _value,
- $Res Function(_$LocationListImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of LocationList
- /// 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? icon = freezed,
- Object? tag = freezed,
- Object? locations = freezed,
- }) {
- return _then(
- _$LocationListImpl(
- 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?,
- icon: freezed == icon
- ? _value.icon
- : icon // ignore: cast_nullable_to_non_nullable
- as String?,
- tag: freezed == tag
- ? _value.tag
- : tag // ignore: cast_nullable_to_non_nullable
- as int?,
- locations: freezed == locations
- ? _value._locations
- : locations // ignore: cast_nullable_to_non_nullable
- as List<Locations>?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$LocationListImpl with DiagnosticableTreeMixin implements _LocationList {
- const _$LocationListImpl({
- this.id,
- this.name,
- this.icon,
- this.tag,
- final List<Locations>? locations,
- }) : _locations = locations;
- factory _$LocationListImpl.fromJson(Map<String, dynamic> json) =>
- _$$LocationListImplFromJson(json);
- @override
- final int? id;
- @override
- final String? name;
- @override
- final String? icon;
- @override
- final int? tag;
- final List<Locations>? _locations;
- @override
- List<Locations>? get locations {
- final value = _locations;
- if (value == null) return null;
- if (_locations is EqualUnmodifiableListView) return _locations;
- // ignore: implicit_dynamic_type
- return EqualUnmodifiableListView(value);
- }
- @override
- String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
- return 'LocationList(id: $id, name: $name, icon: $icon, tag: $tag, locations: $locations)';
- }
- @override
- void debugFillProperties(DiagnosticPropertiesBuilder properties) {
- super.debugFillProperties(properties);
- properties
- ..add(DiagnosticsProperty('type', 'LocationList'))
- ..add(DiagnosticsProperty('id', id))
- ..add(DiagnosticsProperty('name', name))
- ..add(DiagnosticsProperty('icon', icon))
- ..add(DiagnosticsProperty('tag', tag))
- ..add(DiagnosticsProperty('locations', locations));
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$LocationListImpl &&
- (identical(other.id, id) || other.id == id) &&
- (identical(other.name, name) || other.name == name) &&
- (identical(other.icon, icon) || other.icon == icon) &&
- (identical(other.tag, tag) || other.tag == tag) &&
- const DeepCollectionEquality().equals(
- other._locations,
- _locations,
- ));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(
- runtimeType,
- id,
- name,
- icon,
- tag,
- const DeepCollectionEquality().hash(_locations),
- );
- /// Create a copy of LocationList
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$LocationListImplCopyWith<_$LocationListImpl> get copyWith =>
- __$$LocationListImplCopyWithImpl<_$LocationListImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$LocationListImplToJson(this);
- }
- }
- abstract class _LocationList implements LocationList {
- const factory _LocationList({
- final int? id,
- final String? name,
- final String? icon,
- final int? tag,
- final List<Locations>? locations,
- }) = _$LocationListImpl;
- factory _LocationList.fromJson(Map<String, dynamic> json) =
- _$LocationListImpl.fromJson;
- @override
- int? get id;
- @override
- String? get name;
- @override
- String? get icon;
- @override
- int? get tag;
- @override
- List<Locations>? get locations;
- /// Create a copy of LocationList
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$LocationListImplCopyWith<_$LocationListImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- Locations _$LocationsFromJson(Map<String, dynamic> json) {
- return _Locations.fromJson(json);
- }
- /// @nodoc
- mixin _$Locations {
- int? get id => throw _privateConstructorUsedError;
- String? get name => throw _privateConstructorUsedError;
- String? get code => throw _privateConstructorUsedError;
- Param? get param => throw _privateConstructorUsedError;
- dynamic get paramV2 => throw _privateConstructorUsedError;
- String? get icon => throw _privateConstructorUsedError;
- String? get country => throw _privateConstructorUsedError;
- int? get sort => throw _privateConstructorUsedError;
- int? get latency => throw _privateConstructorUsedError;
- /// Serializes this Locations to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of Locations
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $LocationsCopyWith<Locations> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $LocationsCopyWith<$Res> {
- factory $LocationsCopyWith(Locations value, $Res Function(Locations) then) =
- _$LocationsCopyWithImpl<$Res, Locations>;
- @useResult
- $Res call({
- int? id,
- String? name,
- String? code,
- Param? param,
- dynamic paramV2,
- String? icon,
- String? country,
- int? sort,
- int? latency,
- });
- $ParamCopyWith<$Res>? get param;
- }
- /// @nodoc
- class _$LocationsCopyWithImpl<$Res, $Val extends Locations>
- implements $LocationsCopyWith<$Res> {
- _$LocationsCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of Locations
- /// 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? param = freezed,
- Object? paramV2 = freezed,
- Object? icon = freezed,
- Object? country = freezed,
- Object? sort = freezed,
- Object? latency = 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?,
- param: freezed == param
- ? _value.param
- : param // ignore: cast_nullable_to_non_nullable
- as Param?,
- paramV2: freezed == paramV2
- ? _value.paramV2
- : paramV2 // ignore: cast_nullable_to_non_nullable
- as dynamic,
- 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?,
- latency: freezed == latency
- ? _value.latency
- : latency // ignore: cast_nullable_to_non_nullable
- as int?,
- )
- as $Val,
- );
- }
- /// Create a copy of Locations
- /// with the given fields replaced by the non-null parameter values.
- @override
- @pragma('vm:prefer-inline')
- $ParamCopyWith<$Res>? get param {
- if (_value.param == null) {
- return null;
- }
- return $ParamCopyWith<$Res>(_value.param!, (value) {
- return _then(_value.copyWith(param: value) as $Val);
- });
- }
- }
- /// @nodoc
- abstract class _$$LocationsImplCopyWith<$Res>
- implements $LocationsCopyWith<$Res> {
- factory _$$LocationsImplCopyWith(
- _$LocationsImpl value,
- $Res Function(_$LocationsImpl) then,
- ) = __$$LocationsImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({
- int? id,
- String? name,
- String? code,
- Param? param,
- dynamic paramV2,
- String? icon,
- String? country,
- int? sort,
- int? latency,
- });
- @override
- $ParamCopyWith<$Res>? get param;
- }
- /// @nodoc
- class __$$LocationsImplCopyWithImpl<$Res>
- extends _$LocationsCopyWithImpl<$Res, _$LocationsImpl>
- implements _$$LocationsImplCopyWith<$Res> {
- __$$LocationsImplCopyWithImpl(
- _$LocationsImpl _value,
- $Res Function(_$LocationsImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of Locations
- /// 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? param = freezed,
- Object? paramV2 = freezed,
- Object? icon = freezed,
- Object? country = freezed,
- Object? sort = freezed,
- Object? latency = freezed,
- }) {
- return _then(
- _$LocationsImpl(
- 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?,
- param: freezed == param
- ? _value.param
- : param // ignore: cast_nullable_to_non_nullable
- as Param?,
- paramV2: freezed == paramV2
- ? _value.paramV2
- : paramV2 // ignore: cast_nullable_to_non_nullable
- as dynamic,
- 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?,
- latency: freezed == latency
- ? _value.latency
- : latency // ignore: cast_nullable_to_non_nullable
- as int?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$LocationsImpl with DiagnosticableTreeMixin implements _Locations {
- const _$LocationsImpl({
- this.id,
- this.name,
- this.code,
- this.param,
- this.paramV2,
- this.icon,
- this.country,
- this.sort,
- this.latency,
- });
- factory _$LocationsImpl.fromJson(Map<String, dynamic> json) =>
- _$$LocationsImplFromJson(json);
- @override
- final int? id;
- @override
- final String? name;
- @override
- final String? code;
- @override
- final Param? param;
- @override
- final dynamic paramV2;
- @override
- final String? icon;
- @override
- final String? country;
- @override
- final int? sort;
- @override
- final int? latency;
- @override
- String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
- return 'Locations(id: $id, name: $name, code: $code, param: $param, paramV2: $paramV2, icon: $icon, country: $country, sort: $sort, latency: $latency)';
- }
- @override
- void debugFillProperties(DiagnosticPropertiesBuilder properties) {
- super.debugFillProperties(properties);
- properties
- ..add(DiagnosticsProperty('type', 'Locations'))
- ..add(DiagnosticsProperty('id', id))
- ..add(DiagnosticsProperty('name', name))
- ..add(DiagnosticsProperty('code', code))
- ..add(DiagnosticsProperty('param', param))
- ..add(DiagnosticsProperty('paramV2', paramV2))
- ..add(DiagnosticsProperty('icon', icon))
- ..add(DiagnosticsProperty('country', country))
- ..add(DiagnosticsProperty('sort', sort))
- ..add(DiagnosticsProperty('latency', latency));
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$LocationsImpl &&
- (identical(other.id, id) || other.id == id) &&
- (identical(other.name, name) || other.name == name) &&
- (identical(other.code, code) || other.code == code) &&
- (identical(other.param, param) || other.param == param) &&
- const DeepCollectionEquality().equals(other.paramV2, paramV2) &&
- (identical(other.icon, icon) || other.icon == icon) &&
- (identical(other.country, country) || other.country == country) &&
- (identical(other.sort, sort) || other.sort == sort) &&
- (identical(other.latency, latency) || other.latency == latency));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(
- runtimeType,
- id,
- name,
- code,
- param,
- const DeepCollectionEquality().hash(paramV2),
- icon,
- country,
- sort,
- latency,
- );
- /// Create a copy of Locations
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$LocationsImplCopyWith<_$LocationsImpl> get copyWith =>
- __$$LocationsImplCopyWithImpl<_$LocationsImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$LocationsImplToJson(this);
- }
- }
- abstract class _Locations implements Locations {
- const factory _Locations({
- final int? id,
- final String? name,
- final String? code,
- final Param? param,
- final dynamic paramV2,
- final String? icon,
- final String? country,
- final int? sort,
- final int? latency,
- }) = _$LocationsImpl;
- factory _Locations.fromJson(Map<String, dynamic> json) =
- _$LocationsImpl.fromJson;
- @override
- int? get id;
- @override
- String? get name;
- @override
- String? get code;
- @override
- Param? get param;
- @override
- dynamic get paramV2;
- @override
- String? get icon;
- @override
- String? get country;
- @override
- int? get sort;
- @override
- int? get latency;
- /// Create a copy of Locations
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$LocationsImplCopyWith<_$LocationsImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- Param _$ParamFromJson(Map<String, dynamic> json) {
- return _Param.fromJson(json);
- }
- /// @nodoc
- mixin _$Param {
- String? get g => throw _privateConstructorUsedError;
- /// Serializes this Param to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of Param
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $ParamCopyWith<Param> get copyWith => throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $ParamCopyWith<$Res> {
- factory $ParamCopyWith(Param value, $Res Function(Param) then) =
- _$ParamCopyWithImpl<$Res, Param>;
- @useResult
- $Res call({String? g});
- }
- /// @nodoc
- class _$ParamCopyWithImpl<$Res, $Val extends Param>
- implements $ParamCopyWith<$Res> {
- _$ParamCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of Param
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? g = freezed}) {
- return _then(
- _value.copyWith(
- g: freezed == g
- ? _value.g
- : g // ignore: cast_nullable_to_non_nullable
- as String?,
- )
- as $Val,
- );
- }
- }
- /// @nodoc
- abstract class _$$ParamImplCopyWith<$Res> implements $ParamCopyWith<$Res> {
- factory _$$ParamImplCopyWith(
- _$ParamImpl value,
- $Res Function(_$ParamImpl) then,
- ) = __$$ParamImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({String? g});
- }
- /// @nodoc
- class __$$ParamImplCopyWithImpl<$Res>
- extends _$ParamCopyWithImpl<$Res, _$ParamImpl>
- implements _$$ParamImplCopyWith<$Res> {
- __$$ParamImplCopyWithImpl(
- _$ParamImpl _value,
- $Res Function(_$ParamImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of Param
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? g = freezed}) {
- return _then(
- _$ParamImpl(
- g: freezed == g
- ? _value.g
- : g // ignore: cast_nullable_to_non_nullable
- as String?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$ParamImpl with DiagnosticableTreeMixin implements _Param {
- const _$ParamImpl({this.g});
- factory _$ParamImpl.fromJson(Map<String, dynamic> json) =>
- _$$ParamImplFromJson(json);
- @override
- final String? g;
- @override
- String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
- return 'Param(g: $g)';
- }
- @override
- void debugFillProperties(DiagnosticPropertiesBuilder properties) {
- super.debugFillProperties(properties);
- properties
- ..add(DiagnosticsProperty('type', 'Param'))
- ..add(DiagnosticsProperty('g', g));
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$ParamImpl &&
- (identical(other.g, g) || other.g == g));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(runtimeType, g);
- /// Create a copy of Param
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$ParamImplCopyWith<_$ParamImpl> get copyWith =>
- __$$ParamImplCopyWithImpl<_$ParamImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$ParamImplToJson(this);
- }
- }
- abstract class _Param implements Param {
- const factory _Param({final String? g}) = _$ParamImpl;
- factory _Param.fromJson(Map<String, dynamic> json) = _$ParamImpl.fromJson;
- @override
- String? get g;
- /// Create a copy of Param
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$ParamImplCopyWith<_$ParamImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
|