| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350 |
- // 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;
- }
|