mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-07 13:15:55 -06:00
chore: Remove generated files (freezed)
This commit is contained in:
@@ -1,258 +0,0 @@
|
|||||||
// 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 'label_repository_state.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#custom-getters-and-methods');
|
|
||||||
|
|
||||||
LabelRepositoryState _$LabelRepositoryStateFromJson(Map<String, dynamic> json) {
|
|
||||||
return _LabelRepositoryState.fromJson(json);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
mixin _$LabelRepositoryState {
|
|
||||||
Map<int, Correspondent> get correspondents =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
Map<int, DocumentType> get documentTypes =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
Map<int, Tag> get tags => throw _privateConstructorUsedError;
|
|
||||||
Map<int, StoragePath> get storagePaths => throw _privateConstructorUsedError;
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
$LabelRepositoryStateCopyWith<LabelRepositoryState> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class $LabelRepositoryStateCopyWith<$Res> {
|
|
||||||
factory $LabelRepositoryStateCopyWith(LabelRepositoryState value,
|
|
||||||
$Res Function(LabelRepositoryState) then) =
|
|
||||||
_$LabelRepositoryStateCopyWithImpl<$Res, LabelRepositoryState>;
|
|
||||||
@useResult
|
|
||||||
$Res call(
|
|
||||||
{Map<int, Correspondent> correspondents,
|
|
||||||
Map<int, DocumentType> documentTypes,
|
|
||||||
Map<int, Tag> tags,
|
|
||||||
Map<int, StoragePath> storagePaths});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class _$LabelRepositoryStateCopyWithImpl<$Res,
|
|
||||||
$Val extends LabelRepositoryState>
|
|
||||||
implements $LabelRepositoryStateCopyWith<$Res> {
|
|
||||||
_$LabelRepositoryStateCopyWithImpl(this._value, this._then);
|
|
||||||
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Val _value;
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Res Function($Val) _then;
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? correspondents = null,
|
|
||||||
Object? documentTypes = null,
|
|
||||||
Object? tags = null,
|
|
||||||
Object? storagePaths = null,
|
|
||||||
}) {
|
|
||||||
return _then(_value.copyWith(
|
|
||||||
correspondents: null == correspondents
|
|
||||||
? _value.correspondents
|
|
||||||
: correspondents // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Correspondent>,
|
|
||||||
documentTypes: null == documentTypes
|
|
||||||
? _value.documentTypes
|
|
||||||
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, DocumentType>,
|
|
||||||
tags: null == tags
|
|
||||||
? _value.tags
|
|
||||||
: tags // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Tag>,
|
|
||||||
storagePaths: null == storagePaths
|
|
||||||
? _value.storagePaths
|
|
||||||
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, StoragePath>,
|
|
||||||
) as $Val);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_LabelRepositoryStateCopyWith<$Res>
|
|
||||||
implements $LabelRepositoryStateCopyWith<$Res> {
|
|
||||||
factory _$$_LabelRepositoryStateCopyWith(_$_LabelRepositoryState value,
|
|
||||||
$Res Function(_$_LabelRepositoryState) then) =
|
|
||||||
__$$_LabelRepositoryStateCopyWithImpl<$Res>;
|
|
||||||
@override
|
|
||||||
@useResult
|
|
||||||
$Res call(
|
|
||||||
{Map<int, Correspondent> correspondents,
|
|
||||||
Map<int, DocumentType> documentTypes,
|
|
||||||
Map<int, Tag> tags,
|
|
||||||
Map<int, StoragePath> storagePaths});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_LabelRepositoryStateCopyWithImpl<$Res>
|
|
||||||
extends _$LabelRepositoryStateCopyWithImpl<$Res, _$_LabelRepositoryState>
|
|
||||||
implements _$$_LabelRepositoryStateCopyWith<$Res> {
|
|
||||||
__$$_LabelRepositoryStateCopyWithImpl(_$_LabelRepositoryState _value,
|
|
||||||
$Res Function(_$_LabelRepositoryState) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? correspondents = null,
|
|
||||||
Object? documentTypes = null,
|
|
||||||
Object? tags = null,
|
|
||||||
Object? storagePaths = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$_LabelRepositoryState(
|
|
||||||
correspondents: null == correspondents
|
|
||||||
? _value._correspondents
|
|
||||||
: correspondents // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Correspondent>,
|
|
||||||
documentTypes: null == documentTypes
|
|
||||||
? _value._documentTypes
|
|
||||||
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, DocumentType>,
|
|
||||||
tags: null == tags
|
|
||||||
? _value._tags
|
|
||||||
: tags // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Tag>,
|
|
||||||
storagePaths: null == storagePaths
|
|
||||||
? _value._storagePaths
|
|
||||||
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, StoragePath>,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
@JsonSerializable()
|
|
||||||
class _$_LabelRepositoryState implements _LabelRepositoryState {
|
|
||||||
const _$_LabelRepositoryState(
|
|
||||||
{final Map<int, Correspondent> correspondents = const {},
|
|
||||||
final Map<int, DocumentType> documentTypes = const {},
|
|
||||||
final Map<int, Tag> tags = const {},
|
|
||||||
final Map<int, StoragePath> storagePaths = const {}})
|
|
||||||
: _correspondents = correspondents,
|
|
||||||
_documentTypes = documentTypes,
|
|
||||||
_tags = tags,
|
|
||||||
_storagePaths = storagePaths;
|
|
||||||
|
|
||||||
factory _$_LabelRepositoryState.fromJson(Map<String, dynamic> json) =>
|
|
||||||
_$$_LabelRepositoryStateFromJson(json);
|
|
||||||
|
|
||||||
final Map<int, Correspondent> _correspondents;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, Correspondent> get correspondents {
|
|
||||||
if (_correspondents is EqualUnmodifiableMapView) return _correspondents;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_correspondents);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, DocumentType> _documentTypes;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, DocumentType> get documentTypes {
|
|
||||||
if (_documentTypes is EqualUnmodifiableMapView) return _documentTypes;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_documentTypes);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, Tag> _tags;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, Tag> get tags {
|
|
||||||
if (_tags is EqualUnmodifiableMapView) return _tags;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_tags);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, StoragePath> _storagePaths;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, StoragePath> get storagePaths {
|
|
||||||
if (_storagePaths is EqualUnmodifiableMapView) return _storagePaths;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_storagePaths);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'LabelRepositoryState(correspondents: $correspondents, documentTypes: $documentTypes, tags: $tags, storagePaths: $storagePaths)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$_LabelRepositoryState &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._correspondents, _correspondents) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._documentTypes, _documentTypes) &&
|
|
||||||
const DeepCollectionEquality().equals(other._tags, _tags) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._storagePaths, _storagePaths));
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(
|
|
||||||
runtimeType,
|
|
||||||
const DeepCollectionEquality().hash(_correspondents),
|
|
||||||
const DeepCollectionEquality().hash(_documentTypes),
|
|
||||||
const DeepCollectionEquality().hash(_tags),
|
|
||||||
const DeepCollectionEquality().hash(_storagePaths));
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$_LabelRepositoryStateCopyWith<_$_LabelRepositoryState> get copyWith =>
|
|
||||||
__$$_LabelRepositoryStateCopyWithImpl<_$_LabelRepositoryState>(
|
|
||||||
this, _$identity);
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
return _$$_LabelRepositoryStateToJson(
|
|
||||||
this,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _LabelRepositoryState implements LabelRepositoryState {
|
|
||||||
const factory _LabelRepositoryState(
|
|
||||||
{final Map<int, Correspondent> correspondents,
|
|
||||||
final Map<int, DocumentType> documentTypes,
|
|
||||||
final Map<int, Tag> tags,
|
|
||||||
final Map<int, StoragePath> storagePaths}) = _$_LabelRepositoryState;
|
|
||||||
|
|
||||||
factory _LabelRepositoryState.fromJson(Map<String, dynamic> json) =
|
|
||||||
_$_LabelRepositoryState.fromJson;
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<int, Correspondent> get correspondents;
|
|
||||||
@override
|
|
||||||
Map<int, DocumentType> get documentTypes;
|
|
||||||
@override
|
|
||||||
Map<int, Tag> get tags;
|
|
||||||
@override
|
|
||||||
Map<int, StoragePath> get storagePaths;
|
|
||||||
@override
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$_LabelRepositoryStateCopyWith<_$_LabelRepositoryState> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
@@ -1,167 +0,0 @@
|
|||||||
// 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 'saved_view_repository_state.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#custom-getters-and-methods');
|
|
||||||
|
|
||||||
SavedViewRepositoryState _$SavedViewRepositoryStateFromJson(
|
|
||||||
Map<String, dynamic> json) {
|
|
||||||
return _SavedViewRepositoryState.fromJson(json);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
mixin _$SavedViewRepositoryState {
|
|
||||||
Map<int, SavedView> get savedViews => throw _privateConstructorUsedError;
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
$SavedViewRepositoryStateCopyWith<SavedViewRepositoryState> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class $SavedViewRepositoryStateCopyWith<$Res> {
|
|
||||||
factory $SavedViewRepositoryStateCopyWith(SavedViewRepositoryState value,
|
|
||||||
$Res Function(SavedViewRepositoryState) then) =
|
|
||||||
_$SavedViewRepositoryStateCopyWithImpl<$Res, SavedViewRepositoryState>;
|
|
||||||
@useResult
|
|
||||||
$Res call({Map<int, SavedView> savedViews});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class _$SavedViewRepositoryStateCopyWithImpl<$Res,
|
|
||||||
$Val extends SavedViewRepositoryState>
|
|
||||||
implements $SavedViewRepositoryStateCopyWith<$Res> {
|
|
||||||
_$SavedViewRepositoryStateCopyWithImpl(this._value, this._then);
|
|
||||||
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Val _value;
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Res Function($Val) _then;
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? savedViews = null,
|
|
||||||
}) {
|
|
||||||
return _then(_value.copyWith(
|
|
||||||
savedViews: null == savedViews
|
|
||||||
? _value.savedViews
|
|
||||||
: savedViews // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, SavedView>,
|
|
||||||
) as $Val);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_SavedViewRepositoryStateCopyWith<$Res>
|
|
||||||
implements $SavedViewRepositoryStateCopyWith<$Res> {
|
|
||||||
factory _$$_SavedViewRepositoryStateCopyWith(
|
|
||||||
_$_SavedViewRepositoryState value,
|
|
||||||
$Res Function(_$_SavedViewRepositoryState) then) =
|
|
||||||
__$$_SavedViewRepositoryStateCopyWithImpl<$Res>;
|
|
||||||
@override
|
|
||||||
@useResult
|
|
||||||
$Res call({Map<int, SavedView> savedViews});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_SavedViewRepositoryStateCopyWithImpl<$Res>
|
|
||||||
extends _$SavedViewRepositoryStateCopyWithImpl<$Res,
|
|
||||||
_$_SavedViewRepositoryState>
|
|
||||||
implements _$$_SavedViewRepositoryStateCopyWith<$Res> {
|
|
||||||
__$$_SavedViewRepositoryStateCopyWithImpl(_$_SavedViewRepositoryState _value,
|
|
||||||
$Res Function(_$_SavedViewRepositoryState) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? savedViews = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$_SavedViewRepositoryState(
|
|
||||||
savedViews: null == savedViews
|
|
||||||
? _value._savedViews
|
|
||||||
: savedViews // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, SavedView>,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
@JsonSerializable()
|
|
||||||
class _$_SavedViewRepositoryState implements _SavedViewRepositoryState {
|
|
||||||
const _$_SavedViewRepositoryState(
|
|
||||||
{final Map<int, SavedView> savedViews = const {}})
|
|
||||||
: _savedViews = savedViews;
|
|
||||||
|
|
||||||
factory _$_SavedViewRepositoryState.fromJson(Map<String, dynamic> json) =>
|
|
||||||
_$$_SavedViewRepositoryStateFromJson(json);
|
|
||||||
|
|
||||||
final Map<int, SavedView> _savedViews;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, SavedView> get savedViews {
|
|
||||||
if (_savedViews is EqualUnmodifiableMapView) return _savedViews;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_savedViews);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'SavedViewRepositoryState(savedViews: $savedViews)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$_SavedViewRepositoryState &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._savedViews, _savedViews));
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(
|
|
||||||
runtimeType, const DeepCollectionEquality().hash(_savedViews));
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$_SavedViewRepositoryStateCopyWith<_$_SavedViewRepositoryState>
|
|
||||||
get copyWith => __$$_SavedViewRepositoryStateCopyWithImpl<
|
|
||||||
_$_SavedViewRepositoryState>(this, _$identity);
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
return _$$_SavedViewRepositoryStateToJson(
|
|
||||||
this,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _SavedViewRepositoryState implements SavedViewRepositoryState {
|
|
||||||
const factory _SavedViewRepositoryState(
|
|
||||||
{final Map<int, SavedView> savedViews}) = _$_SavedViewRepositoryState;
|
|
||||||
|
|
||||||
factory _SavedViewRepositoryState.fromJson(Map<String, dynamic> json) =
|
|
||||||
_$_SavedViewRepositoryState.fromJson;
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<int, SavedView> get savedViews;
|
|
||||||
@override
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$_SavedViewRepositoryStateCopyWith<_$_SavedViewRepositoryState>
|
|
||||||
get copyWith => throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
@@ -1,161 +0,0 @@
|
|||||||
// 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 'user_repository.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#custom-getters-and-methods');
|
|
||||||
|
|
||||||
UserRepositoryState _$UserRepositoryStateFromJson(Map<String, dynamic> json) {
|
|
||||||
return _UserRepositoryState.fromJson(json);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
mixin _$UserRepositoryState {
|
|
||||||
Map<int, UserModel> get users => throw _privateConstructorUsedError;
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
$UserRepositoryStateCopyWith<UserRepositoryState> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class $UserRepositoryStateCopyWith<$Res> {
|
|
||||||
factory $UserRepositoryStateCopyWith(
|
|
||||||
UserRepositoryState value, $Res Function(UserRepositoryState) then) =
|
|
||||||
_$UserRepositoryStateCopyWithImpl<$Res, UserRepositoryState>;
|
|
||||||
@useResult
|
|
||||||
$Res call({Map<int, UserModel> users});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class _$UserRepositoryStateCopyWithImpl<$Res, $Val extends UserRepositoryState>
|
|
||||||
implements $UserRepositoryStateCopyWith<$Res> {
|
|
||||||
_$UserRepositoryStateCopyWithImpl(this._value, this._then);
|
|
||||||
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Val _value;
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Res Function($Val) _then;
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? users = null,
|
|
||||||
}) {
|
|
||||||
return _then(_value.copyWith(
|
|
||||||
users: null == users
|
|
||||||
? _value.users
|
|
||||||
: users // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, UserModel>,
|
|
||||||
) as $Val);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_UserRepositoryStateCopyWith<$Res>
|
|
||||||
implements $UserRepositoryStateCopyWith<$Res> {
|
|
||||||
factory _$$_UserRepositoryStateCopyWith(_$_UserRepositoryState value,
|
|
||||||
$Res Function(_$_UserRepositoryState) then) =
|
|
||||||
__$$_UserRepositoryStateCopyWithImpl<$Res>;
|
|
||||||
@override
|
|
||||||
@useResult
|
|
||||||
$Res call({Map<int, UserModel> users});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_UserRepositoryStateCopyWithImpl<$Res>
|
|
||||||
extends _$UserRepositoryStateCopyWithImpl<$Res, _$_UserRepositoryState>
|
|
||||||
implements _$$_UserRepositoryStateCopyWith<$Res> {
|
|
||||||
__$$_UserRepositoryStateCopyWithImpl(_$_UserRepositoryState _value,
|
|
||||||
$Res Function(_$_UserRepositoryState) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? users = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$_UserRepositoryState(
|
|
||||||
users: null == users
|
|
||||||
? _value._users
|
|
||||||
: users // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, UserModel>,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
@JsonSerializable()
|
|
||||||
class _$_UserRepositoryState implements _UserRepositoryState {
|
|
||||||
const _$_UserRepositoryState({final Map<int, UserModel> users = const {}})
|
|
||||||
: _users = users;
|
|
||||||
|
|
||||||
factory _$_UserRepositoryState.fromJson(Map<String, dynamic> json) =>
|
|
||||||
_$$_UserRepositoryStateFromJson(json);
|
|
||||||
|
|
||||||
final Map<int, UserModel> _users;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, UserModel> get users {
|
|
||||||
if (_users is EqualUnmodifiableMapView) return _users;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_users);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'UserRepositoryState(users: $users)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$_UserRepositoryState &&
|
|
||||||
const DeepCollectionEquality().equals(other._users, _users));
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
Object.hash(runtimeType, const DeepCollectionEquality().hash(_users));
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$_UserRepositoryStateCopyWith<_$_UserRepositoryState> get copyWith =>
|
|
||||||
__$$_UserRepositoryStateCopyWithImpl<_$_UserRepositoryState>(
|
|
||||||
this, _$identity);
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
return _$$_UserRepositoryStateToJson(
|
|
||||||
this,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _UserRepositoryState implements UserRepositoryState {
|
|
||||||
const factory _UserRepositoryState({final Map<int, UserModel> users}) =
|
|
||||||
_$_UserRepositoryState;
|
|
||||||
|
|
||||||
factory _UserRepositoryState.fromJson(Map<String, dynamic> json) =
|
|
||||||
_$_UserRepositoryState.fromJson;
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<int, UserModel> get users;
|
|
||||||
@override
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$_UserRepositoryStateCopyWith<_$_UserRepositoryState> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
@@ -1,269 +0,0 @@
|
|||||||
// 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 'document_bulk_action_cubit.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#custom-getters-and-methods');
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
mixin _$DocumentBulkActionState {
|
|
||||||
List<DocumentModel> get selection => throw _privateConstructorUsedError;
|
|
||||||
Map<int, Correspondent> get correspondents =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
Map<int, DocumentType> get documentTypes =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
Map<int, Tag> get tags => throw _privateConstructorUsedError;
|
|
||||||
Map<int, StoragePath> get storagePaths => throw _privateConstructorUsedError;
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
$DocumentBulkActionStateCopyWith<DocumentBulkActionState> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class $DocumentBulkActionStateCopyWith<$Res> {
|
|
||||||
factory $DocumentBulkActionStateCopyWith(DocumentBulkActionState value,
|
|
||||||
$Res Function(DocumentBulkActionState) then) =
|
|
||||||
_$DocumentBulkActionStateCopyWithImpl<$Res, DocumentBulkActionState>;
|
|
||||||
@useResult
|
|
||||||
$Res call(
|
|
||||||
{List<DocumentModel> selection,
|
|
||||||
Map<int, Correspondent> correspondents,
|
|
||||||
Map<int, DocumentType> documentTypes,
|
|
||||||
Map<int, Tag> tags,
|
|
||||||
Map<int, StoragePath> storagePaths});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class _$DocumentBulkActionStateCopyWithImpl<$Res,
|
|
||||||
$Val extends DocumentBulkActionState>
|
|
||||||
implements $DocumentBulkActionStateCopyWith<$Res> {
|
|
||||||
_$DocumentBulkActionStateCopyWithImpl(this._value, this._then);
|
|
||||||
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Val _value;
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Res Function($Val) _then;
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? selection = null,
|
|
||||||
Object? correspondents = null,
|
|
||||||
Object? documentTypes = null,
|
|
||||||
Object? tags = null,
|
|
||||||
Object? storagePaths = null,
|
|
||||||
}) {
|
|
||||||
return _then(_value.copyWith(
|
|
||||||
selection: null == selection
|
|
||||||
? _value.selection
|
|
||||||
: selection // ignore: cast_nullable_to_non_nullable
|
|
||||||
as List<DocumentModel>,
|
|
||||||
correspondents: null == correspondents
|
|
||||||
? _value.correspondents
|
|
||||||
: correspondents // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Correspondent>,
|
|
||||||
documentTypes: null == documentTypes
|
|
||||||
? _value.documentTypes
|
|
||||||
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, DocumentType>,
|
|
||||||
tags: null == tags
|
|
||||||
? _value.tags
|
|
||||||
: tags // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Tag>,
|
|
||||||
storagePaths: null == storagePaths
|
|
||||||
? _value.storagePaths
|
|
||||||
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, StoragePath>,
|
|
||||||
) as $Val);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_DocumentBulkActionStateCopyWith<$Res>
|
|
||||||
implements $DocumentBulkActionStateCopyWith<$Res> {
|
|
||||||
factory _$$_DocumentBulkActionStateCopyWith(_$_DocumentBulkActionState value,
|
|
||||||
$Res Function(_$_DocumentBulkActionState) then) =
|
|
||||||
__$$_DocumentBulkActionStateCopyWithImpl<$Res>;
|
|
||||||
@override
|
|
||||||
@useResult
|
|
||||||
$Res call(
|
|
||||||
{List<DocumentModel> selection,
|
|
||||||
Map<int, Correspondent> correspondents,
|
|
||||||
Map<int, DocumentType> documentTypes,
|
|
||||||
Map<int, Tag> tags,
|
|
||||||
Map<int, StoragePath> storagePaths});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_DocumentBulkActionStateCopyWithImpl<$Res>
|
|
||||||
extends _$DocumentBulkActionStateCopyWithImpl<$Res,
|
|
||||||
_$_DocumentBulkActionState>
|
|
||||||
implements _$$_DocumentBulkActionStateCopyWith<$Res> {
|
|
||||||
__$$_DocumentBulkActionStateCopyWithImpl(_$_DocumentBulkActionState _value,
|
|
||||||
$Res Function(_$_DocumentBulkActionState) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? selection = null,
|
|
||||||
Object? correspondents = null,
|
|
||||||
Object? documentTypes = null,
|
|
||||||
Object? tags = null,
|
|
||||||
Object? storagePaths = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$_DocumentBulkActionState(
|
|
||||||
selection: null == selection
|
|
||||||
? _value._selection
|
|
||||||
: selection // ignore: cast_nullable_to_non_nullable
|
|
||||||
as List<DocumentModel>,
|
|
||||||
correspondents: null == correspondents
|
|
||||||
? _value._correspondents
|
|
||||||
: correspondents // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Correspondent>,
|
|
||||||
documentTypes: null == documentTypes
|
|
||||||
? _value._documentTypes
|
|
||||||
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, DocumentType>,
|
|
||||||
tags: null == tags
|
|
||||||
? _value._tags
|
|
||||||
: tags // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Tag>,
|
|
||||||
storagePaths: null == storagePaths
|
|
||||||
? _value._storagePaths
|
|
||||||
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, StoragePath>,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$_DocumentBulkActionState extends _DocumentBulkActionState {
|
|
||||||
const _$_DocumentBulkActionState(
|
|
||||||
{required final List<DocumentModel> selection,
|
|
||||||
required final Map<int, Correspondent> correspondents,
|
|
||||||
required final Map<int, DocumentType> documentTypes,
|
|
||||||
required final Map<int, Tag> tags,
|
|
||||||
required final Map<int, StoragePath> storagePaths})
|
|
||||||
: _selection = selection,
|
|
||||||
_correspondents = correspondents,
|
|
||||||
_documentTypes = documentTypes,
|
|
||||||
_tags = tags,
|
|
||||||
_storagePaths = storagePaths,
|
|
||||||
super._();
|
|
||||||
|
|
||||||
final List<DocumentModel> _selection;
|
|
||||||
@override
|
|
||||||
List<DocumentModel> get selection {
|
|
||||||
if (_selection is EqualUnmodifiableListView) return _selection;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableListView(_selection);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, Correspondent> _correspondents;
|
|
||||||
@override
|
|
||||||
Map<int, Correspondent> get correspondents {
|
|
||||||
if (_correspondents is EqualUnmodifiableMapView) return _correspondents;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_correspondents);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, DocumentType> _documentTypes;
|
|
||||||
@override
|
|
||||||
Map<int, DocumentType> get documentTypes {
|
|
||||||
if (_documentTypes is EqualUnmodifiableMapView) return _documentTypes;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_documentTypes);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, Tag> _tags;
|
|
||||||
@override
|
|
||||||
Map<int, Tag> get tags {
|
|
||||||
if (_tags is EqualUnmodifiableMapView) return _tags;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_tags);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, StoragePath> _storagePaths;
|
|
||||||
@override
|
|
||||||
Map<int, StoragePath> get storagePaths {
|
|
||||||
if (_storagePaths is EqualUnmodifiableMapView) return _storagePaths;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_storagePaths);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'DocumentBulkActionState(selection: $selection, correspondents: $correspondents, documentTypes: $documentTypes, tags: $tags, storagePaths: $storagePaths)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$_DocumentBulkActionState &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._selection, _selection) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._correspondents, _correspondents) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._documentTypes, _documentTypes) &&
|
|
||||||
const DeepCollectionEquality().equals(other._tags, _tags) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._storagePaths, _storagePaths));
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(
|
|
||||||
runtimeType,
|
|
||||||
const DeepCollectionEquality().hash(_selection),
|
|
||||||
const DeepCollectionEquality().hash(_correspondents),
|
|
||||||
const DeepCollectionEquality().hash(_documentTypes),
|
|
||||||
const DeepCollectionEquality().hash(_tags),
|
|
||||||
const DeepCollectionEquality().hash(_storagePaths));
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$_DocumentBulkActionStateCopyWith<_$_DocumentBulkActionState>
|
|
||||||
get copyWith =>
|
|
||||||
__$$_DocumentBulkActionStateCopyWithImpl<_$_DocumentBulkActionState>(
|
|
||||||
this, _$identity);
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _DocumentBulkActionState extends DocumentBulkActionState {
|
|
||||||
const factory _DocumentBulkActionState(
|
|
||||||
{required final List<DocumentModel> selection,
|
|
||||||
required final Map<int, Correspondent> correspondents,
|
|
||||||
required final Map<int, DocumentType> documentTypes,
|
|
||||||
required final Map<int, Tag> tags,
|
|
||||||
required final Map<int, StoragePath> storagePaths}) =
|
|
||||||
_$_DocumentBulkActionState;
|
|
||||||
const _DocumentBulkActionState._() : super._();
|
|
||||||
|
|
||||||
@override
|
|
||||||
List<DocumentModel> get selection;
|
|
||||||
@override
|
|
||||||
Map<int, Correspondent> get correspondents;
|
|
||||||
@override
|
|
||||||
Map<int, DocumentType> get documentTypes;
|
|
||||||
@override
|
|
||||||
Map<int, Tag> get tags;
|
|
||||||
@override
|
|
||||||
Map<int, StoragePath> get storagePaths;
|
|
||||||
@override
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$_DocumentBulkActionStateCopyWith<_$_DocumentBulkActionState>
|
|
||||||
get copyWith => throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
@@ -1,350 +0,0 @@
|
|||||||
// 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 'document_details_cubit.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#custom-getters-and-methods');
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
mixin _$DocumentDetailsState {
|
|
||||||
DocumentModel get document => throw _privateConstructorUsedError;
|
|
||||||
DocumentMetaData? get metaData => throw _privateConstructorUsedError;
|
|
||||||
bool get isFullContentLoaded => throw _privateConstructorUsedError;
|
|
||||||
String? get fullContent => throw _privateConstructorUsedError;
|
|
||||||
FieldSuggestions? get suggestions => throw _privateConstructorUsedError;
|
|
||||||
Map<int, Correspondent> get correspondents =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
Map<int, DocumentType> get documentTypes =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
Map<int, Tag> get tags => throw _privateConstructorUsedError;
|
|
||||||
Map<int, StoragePath> get storagePaths => throw _privateConstructorUsedError;
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
$DocumentDetailsStateCopyWith<DocumentDetailsState> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class $DocumentDetailsStateCopyWith<$Res> {
|
|
||||||
factory $DocumentDetailsStateCopyWith(DocumentDetailsState value,
|
|
||||||
$Res Function(DocumentDetailsState) then) =
|
|
||||||
_$DocumentDetailsStateCopyWithImpl<$Res, DocumentDetailsState>;
|
|
||||||
@useResult
|
|
||||||
$Res call(
|
|
||||||
{DocumentModel document,
|
|
||||||
DocumentMetaData? metaData,
|
|
||||||
bool isFullContentLoaded,
|
|
||||||
String? fullContent,
|
|
||||||
FieldSuggestions? suggestions,
|
|
||||||
Map<int, Correspondent> correspondents,
|
|
||||||
Map<int, DocumentType> documentTypes,
|
|
||||||
Map<int, Tag> tags,
|
|
||||||
Map<int, StoragePath> storagePaths});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class _$DocumentDetailsStateCopyWithImpl<$Res,
|
|
||||||
$Val extends DocumentDetailsState>
|
|
||||||
implements $DocumentDetailsStateCopyWith<$Res> {
|
|
||||||
_$DocumentDetailsStateCopyWithImpl(this._value, this._then);
|
|
||||||
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Val _value;
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Res Function($Val) _then;
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? document = null,
|
|
||||||
Object? metaData = freezed,
|
|
||||||
Object? isFullContentLoaded = null,
|
|
||||||
Object? fullContent = freezed,
|
|
||||||
Object? suggestions = freezed,
|
|
||||||
Object? correspondents = null,
|
|
||||||
Object? documentTypes = null,
|
|
||||||
Object? tags = null,
|
|
||||||
Object? storagePaths = null,
|
|
||||||
}) {
|
|
||||||
return _then(_value.copyWith(
|
|
||||||
document: null == document
|
|
||||||
? _value.document
|
|
||||||
: document // ignore: cast_nullable_to_non_nullable
|
|
||||||
as DocumentModel,
|
|
||||||
metaData: freezed == metaData
|
|
||||||
? _value.metaData
|
|
||||||
: metaData // ignore: cast_nullable_to_non_nullable
|
|
||||||
as DocumentMetaData?,
|
|
||||||
isFullContentLoaded: null == isFullContentLoaded
|
|
||||||
? _value.isFullContentLoaded
|
|
||||||
: isFullContentLoaded // ignore: cast_nullable_to_non_nullable
|
|
||||||
as bool,
|
|
||||||
fullContent: freezed == fullContent
|
|
||||||
? _value.fullContent
|
|
||||||
: fullContent // ignore: cast_nullable_to_non_nullable
|
|
||||||
as String?,
|
|
||||||
suggestions: freezed == suggestions
|
|
||||||
? _value.suggestions
|
|
||||||
: suggestions // ignore: cast_nullable_to_non_nullable
|
|
||||||
as FieldSuggestions?,
|
|
||||||
correspondents: null == correspondents
|
|
||||||
? _value.correspondents
|
|
||||||
: correspondents // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Correspondent>,
|
|
||||||
documentTypes: null == documentTypes
|
|
||||||
? _value.documentTypes
|
|
||||||
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, DocumentType>,
|
|
||||||
tags: null == tags
|
|
||||||
? _value.tags
|
|
||||||
: tags // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Tag>,
|
|
||||||
storagePaths: null == storagePaths
|
|
||||||
? _value.storagePaths
|
|
||||||
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, StoragePath>,
|
|
||||||
) as $Val);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_DocumentDetailsStateCopyWith<$Res>
|
|
||||||
implements $DocumentDetailsStateCopyWith<$Res> {
|
|
||||||
factory _$$_DocumentDetailsStateCopyWith(_$_DocumentDetailsState value,
|
|
||||||
$Res Function(_$_DocumentDetailsState) then) =
|
|
||||||
__$$_DocumentDetailsStateCopyWithImpl<$Res>;
|
|
||||||
@override
|
|
||||||
@useResult
|
|
||||||
$Res call(
|
|
||||||
{DocumentModel document,
|
|
||||||
DocumentMetaData? metaData,
|
|
||||||
bool isFullContentLoaded,
|
|
||||||
String? fullContent,
|
|
||||||
FieldSuggestions? suggestions,
|
|
||||||
Map<int, Correspondent> correspondents,
|
|
||||||
Map<int, DocumentType> documentTypes,
|
|
||||||
Map<int, Tag> tags,
|
|
||||||
Map<int, StoragePath> storagePaths});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_DocumentDetailsStateCopyWithImpl<$Res>
|
|
||||||
extends _$DocumentDetailsStateCopyWithImpl<$Res, _$_DocumentDetailsState>
|
|
||||||
implements _$$_DocumentDetailsStateCopyWith<$Res> {
|
|
||||||
__$$_DocumentDetailsStateCopyWithImpl(_$_DocumentDetailsState _value,
|
|
||||||
$Res Function(_$_DocumentDetailsState) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? document = null,
|
|
||||||
Object? metaData = freezed,
|
|
||||||
Object? isFullContentLoaded = null,
|
|
||||||
Object? fullContent = freezed,
|
|
||||||
Object? suggestions = freezed,
|
|
||||||
Object? correspondents = null,
|
|
||||||
Object? documentTypes = null,
|
|
||||||
Object? tags = null,
|
|
||||||
Object? storagePaths = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$_DocumentDetailsState(
|
|
||||||
document: null == document
|
|
||||||
? _value.document
|
|
||||||
: document // ignore: cast_nullable_to_non_nullable
|
|
||||||
as DocumentModel,
|
|
||||||
metaData: freezed == metaData
|
|
||||||
? _value.metaData
|
|
||||||
: metaData // ignore: cast_nullable_to_non_nullable
|
|
||||||
as DocumentMetaData?,
|
|
||||||
isFullContentLoaded: null == isFullContentLoaded
|
|
||||||
? _value.isFullContentLoaded
|
|
||||||
: isFullContentLoaded // ignore: cast_nullable_to_non_nullable
|
|
||||||
as bool,
|
|
||||||
fullContent: freezed == fullContent
|
|
||||||
? _value.fullContent
|
|
||||||
: fullContent // ignore: cast_nullable_to_non_nullable
|
|
||||||
as String?,
|
|
||||||
suggestions: freezed == suggestions
|
|
||||||
? _value.suggestions
|
|
||||||
: suggestions // ignore: cast_nullable_to_non_nullable
|
|
||||||
as FieldSuggestions?,
|
|
||||||
correspondents: null == correspondents
|
|
||||||
? _value._correspondents
|
|
||||||
: correspondents // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Correspondent>,
|
|
||||||
documentTypes: null == documentTypes
|
|
||||||
? _value._documentTypes
|
|
||||||
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, DocumentType>,
|
|
||||||
tags: null == tags
|
|
||||||
? _value._tags
|
|
||||||
: tags // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Tag>,
|
|
||||||
storagePaths: null == storagePaths
|
|
||||||
? _value._storagePaths
|
|
||||||
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, StoragePath>,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$_DocumentDetailsState implements _DocumentDetailsState {
|
|
||||||
const _$_DocumentDetailsState(
|
|
||||||
{required this.document,
|
|
||||||
this.metaData,
|
|
||||||
this.isFullContentLoaded = false,
|
|
||||||
this.fullContent,
|
|
||||||
this.suggestions,
|
|
||||||
final Map<int, Correspondent> correspondents = const {},
|
|
||||||
final Map<int, DocumentType> documentTypes = const {},
|
|
||||||
final Map<int, Tag> tags = const {},
|
|
||||||
final Map<int, StoragePath> storagePaths = const {}})
|
|
||||||
: _correspondents = correspondents,
|
|
||||||
_documentTypes = documentTypes,
|
|
||||||
_tags = tags,
|
|
||||||
_storagePaths = storagePaths;
|
|
||||||
|
|
||||||
@override
|
|
||||||
final DocumentModel document;
|
|
||||||
@override
|
|
||||||
final DocumentMetaData? metaData;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
final bool isFullContentLoaded;
|
|
||||||
@override
|
|
||||||
final String? fullContent;
|
|
||||||
@override
|
|
||||||
final FieldSuggestions? suggestions;
|
|
||||||
final Map<int, Correspondent> _correspondents;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, Correspondent> get correspondents {
|
|
||||||
if (_correspondents is EqualUnmodifiableMapView) return _correspondents;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_correspondents);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, DocumentType> _documentTypes;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, DocumentType> get documentTypes {
|
|
||||||
if (_documentTypes is EqualUnmodifiableMapView) return _documentTypes;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_documentTypes);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, Tag> _tags;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, Tag> get tags {
|
|
||||||
if (_tags is EqualUnmodifiableMapView) return _tags;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_tags);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, StoragePath> _storagePaths;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, StoragePath> get storagePaths {
|
|
||||||
if (_storagePaths is EqualUnmodifiableMapView) return _storagePaths;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_storagePaths);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'DocumentDetailsState(document: $document, metaData: $metaData, isFullContentLoaded: $isFullContentLoaded, fullContent: $fullContent, suggestions: $suggestions, correspondents: $correspondents, documentTypes: $documentTypes, tags: $tags, storagePaths: $storagePaths)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$_DocumentDetailsState &&
|
|
||||||
(identical(other.document, document) ||
|
|
||||||
other.document == document) &&
|
|
||||||
(identical(other.metaData, metaData) ||
|
|
||||||
other.metaData == metaData) &&
|
|
||||||
(identical(other.isFullContentLoaded, isFullContentLoaded) ||
|
|
||||||
other.isFullContentLoaded == isFullContentLoaded) &&
|
|
||||||
(identical(other.fullContent, fullContent) ||
|
|
||||||
other.fullContent == fullContent) &&
|
|
||||||
(identical(other.suggestions, suggestions) ||
|
|
||||||
other.suggestions == suggestions) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._correspondents, _correspondents) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._documentTypes, _documentTypes) &&
|
|
||||||
const DeepCollectionEquality().equals(other._tags, _tags) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._storagePaths, _storagePaths));
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(
|
|
||||||
runtimeType,
|
|
||||||
document,
|
|
||||||
metaData,
|
|
||||||
isFullContentLoaded,
|
|
||||||
fullContent,
|
|
||||||
suggestions,
|
|
||||||
const DeepCollectionEquality().hash(_correspondents),
|
|
||||||
const DeepCollectionEquality().hash(_documentTypes),
|
|
||||||
const DeepCollectionEquality().hash(_tags),
|
|
||||||
const DeepCollectionEquality().hash(_storagePaths));
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$_DocumentDetailsStateCopyWith<_$_DocumentDetailsState> get copyWith =>
|
|
||||||
__$$_DocumentDetailsStateCopyWithImpl<_$_DocumentDetailsState>(
|
|
||||||
this, _$identity);
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _DocumentDetailsState implements DocumentDetailsState {
|
|
||||||
const factory _DocumentDetailsState(
|
|
||||||
{required final DocumentModel document,
|
|
||||||
final DocumentMetaData? metaData,
|
|
||||||
final bool isFullContentLoaded,
|
|
||||||
final String? fullContent,
|
|
||||||
final FieldSuggestions? suggestions,
|
|
||||||
final Map<int, Correspondent> correspondents,
|
|
||||||
final Map<int, DocumentType> documentTypes,
|
|
||||||
final Map<int, Tag> tags,
|
|
||||||
final Map<int, StoragePath> storagePaths}) = _$_DocumentDetailsState;
|
|
||||||
|
|
||||||
@override
|
|
||||||
DocumentModel get document;
|
|
||||||
@override
|
|
||||||
DocumentMetaData? get metaData;
|
|
||||||
@override
|
|
||||||
bool get isFullContentLoaded;
|
|
||||||
@override
|
|
||||||
String? get fullContent;
|
|
||||||
@override
|
|
||||||
FieldSuggestions? get suggestions;
|
|
||||||
@override
|
|
||||||
Map<int, Correspondent> get correspondents;
|
|
||||||
@override
|
|
||||||
Map<int, DocumentType> get documentTypes;
|
|
||||||
@override
|
|
||||||
Map<int, Tag> get tags;
|
|
||||||
@override
|
|
||||||
Map<int, StoragePath> get storagePaths;
|
|
||||||
@override
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$_DocumentDetailsStateCopyWith<_$_DocumentDetailsState> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
@@ -1,260 +0,0 @@
|
|||||||
// 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 'document_edit_cubit.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#custom-getters-and-methods');
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
mixin _$DocumentEditState {
|
|
||||||
DocumentModel get document => throw _privateConstructorUsedError;
|
|
||||||
Map<int, Correspondent> get correspondents =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
Map<int, DocumentType> get documentTypes =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
Map<int, StoragePath> get storagePaths => throw _privateConstructorUsedError;
|
|
||||||
Map<int, Tag> get tags => throw _privateConstructorUsedError;
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
$DocumentEditStateCopyWith<DocumentEditState> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class $DocumentEditStateCopyWith<$Res> {
|
|
||||||
factory $DocumentEditStateCopyWith(
|
|
||||||
DocumentEditState value, $Res Function(DocumentEditState) then) =
|
|
||||||
_$DocumentEditStateCopyWithImpl<$Res, DocumentEditState>;
|
|
||||||
@useResult
|
|
||||||
$Res call(
|
|
||||||
{DocumentModel document,
|
|
||||||
Map<int, Correspondent> correspondents,
|
|
||||||
Map<int, DocumentType> documentTypes,
|
|
||||||
Map<int, StoragePath> storagePaths,
|
|
||||||
Map<int, Tag> tags});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class _$DocumentEditStateCopyWithImpl<$Res, $Val extends DocumentEditState>
|
|
||||||
implements $DocumentEditStateCopyWith<$Res> {
|
|
||||||
_$DocumentEditStateCopyWithImpl(this._value, this._then);
|
|
||||||
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Val _value;
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Res Function($Val) _then;
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? document = null,
|
|
||||||
Object? correspondents = null,
|
|
||||||
Object? documentTypes = null,
|
|
||||||
Object? storagePaths = null,
|
|
||||||
Object? tags = null,
|
|
||||||
}) {
|
|
||||||
return _then(_value.copyWith(
|
|
||||||
document: null == document
|
|
||||||
? _value.document
|
|
||||||
: document // ignore: cast_nullable_to_non_nullable
|
|
||||||
as DocumentModel,
|
|
||||||
correspondents: null == correspondents
|
|
||||||
? _value.correspondents
|
|
||||||
: correspondents // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Correspondent>,
|
|
||||||
documentTypes: null == documentTypes
|
|
||||||
? _value.documentTypes
|
|
||||||
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, DocumentType>,
|
|
||||||
storagePaths: null == storagePaths
|
|
||||||
? _value.storagePaths
|
|
||||||
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, StoragePath>,
|
|
||||||
tags: null == tags
|
|
||||||
? _value.tags
|
|
||||||
: tags // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Tag>,
|
|
||||||
) as $Val);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_DocumentEditStateCopyWith<$Res>
|
|
||||||
implements $DocumentEditStateCopyWith<$Res> {
|
|
||||||
factory _$$_DocumentEditStateCopyWith(_$_DocumentEditState value,
|
|
||||||
$Res Function(_$_DocumentEditState) then) =
|
|
||||||
__$$_DocumentEditStateCopyWithImpl<$Res>;
|
|
||||||
@override
|
|
||||||
@useResult
|
|
||||||
$Res call(
|
|
||||||
{DocumentModel document,
|
|
||||||
Map<int, Correspondent> correspondents,
|
|
||||||
Map<int, DocumentType> documentTypes,
|
|
||||||
Map<int, StoragePath> storagePaths,
|
|
||||||
Map<int, Tag> tags});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_DocumentEditStateCopyWithImpl<$Res>
|
|
||||||
extends _$DocumentEditStateCopyWithImpl<$Res, _$_DocumentEditState>
|
|
||||||
implements _$$_DocumentEditStateCopyWith<$Res> {
|
|
||||||
__$$_DocumentEditStateCopyWithImpl(
|
|
||||||
_$_DocumentEditState _value, $Res Function(_$_DocumentEditState) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? document = null,
|
|
||||||
Object? correspondents = null,
|
|
||||||
Object? documentTypes = null,
|
|
||||||
Object? storagePaths = null,
|
|
||||||
Object? tags = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$_DocumentEditState(
|
|
||||||
document: null == document
|
|
||||||
? _value.document
|
|
||||||
: document // ignore: cast_nullable_to_non_nullable
|
|
||||||
as DocumentModel,
|
|
||||||
correspondents: null == correspondents
|
|
||||||
? _value._correspondents
|
|
||||||
: correspondents // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Correspondent>,
|
|
||||||
documentTypes: null == documentTypes
|
|
||||||
? _value._documentTypes
|
|
||||||
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, DocumentType>,
|
|
||||||
storagePaths: null == storagePaths
|
|
||||||
? _value._storagePaths
|
|
||||||
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, StoragePath>,
|
|
||||||
tags: null == tags
|
|
||||||
? _value._tags
|
|
||||||
: tags // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Tag>,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$_DocumentEditState implements _DocumentEditState {
|
|
||||||
const _$_DocumentEditState(
|
|
||||||
{required this.document,
|
|
||||||
final Map<int, Correspondent> correspondents = const {},
|
|
||||||
final Map<int, DocumentType> documentTypes = const {},
|
|
||||||
final Map<int, StoragePath> storagePaths = const {},
|
|
||||||
final Map<int, Tag> tags = const {}})
|
|
||||||
: _correspondents = correspondents,
|
|
||||||
_documentTypes = documentTypes,
|
|
||||||
_storagePaths = storagePaths,
|
|
||||||
_tags = tags;
|
|
||||||
|
|
||||||
@override
|
|
||||||
final DocumentModel document;
|
|
||||||
final Map<int, Correspondent> _correspondents;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, Correspondent> get correspondents {
|
|
||||||
if (_correspondents is EqualUnmodifiableMapView) return _correspondents;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_correspondents);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, DocumentType> _documentTypes;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, DocumentType> get documentTypes {
|
|
||||||
if (_documentTypes is EqualUnmodifiableMapView) return _documentTypes;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_documentTypes);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, StoragePath> _storagePaths;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, StoragePath> get storagePaths {
|
|
||||||
if (_storagePaths is EqualUnmodifiableMapView) return _storagePaths;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_storagePaths);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, Tag> _tags;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, Tag> get tags {
|
|
||||||
if (_tags is EqualUnmodifiableMapView) return _tags;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_tags);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'DocumentEditState(document: $document, correspondents: $correspondents, documentTypes: $documentTypes, storagePaths: $storagePaths, tags: $tags)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$_DocumentEditState &&
|
|
||||||
(identical(other.document, document) ||
|
|
||||||
other.document == document) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._correspondents, _correspondents) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._documentTypes, _documentTypes) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._storagePaths, _storagePaths) &&
|
|
||||||
const DeepCollectionEquality().equals(other._tags, _tags));
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(
|
|
||||||
runtimeType,
|
|
||||||
document,
|
|
||||||
const DeepCollectionEquality().hash(_correspondents),
|
|
||||||
const DeepCollectionEquality().hash(_documentTypes),
|
|
||||||
const DeepCollectionEquality().hash(_storagePaths),
|
|
||||||
const DeepCollectionEquality().hash(_tags));
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$_DocumentEditStateCopyWith<_$_DocumentEditState> get copyWith =>
|
|
||||||
__$$_DocumentEditStateCopyWithImpl<_$_DocumentEditState>(
|
|
||||||
this, _$identity);
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _DocumentEditState implements DocumentEditState {
|
|
||||||
const factory _DocumentEditState(
|
|
||||||
{required final DocumentModel document,
|
|
||||||
final Map<int, Correspondent> correspondents,
|
|
||||||
final Map<int, DocumentType> documentTypes,
|
|
||||||
final Map<int, StoragePath> storagePaths,
|
|
||||||
final Map<int, Tag> tags}) = _$_DocumentEditState;
|
|
||||||
|
|
||||||
@override
|
|
||||||
DocumentModel get document;
|
|
||||||
@override
|
|
||||||
Map<int, Correspondent> get correspondents;
|
|
||||||
@override
|
|
||||||
Map<int, DocumentType> get documentTypes;
|
|
||||||
@override
|
|
||||||
Map<int, StoragePath> get storagePaths;
|
|
||||||
@override
|
|
||||||
Map<int, Tag> get tags;
|
|
||||||
@override
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$_DocumentEditStateCopyWith<_$_DocumentEditState> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
@@ -1,237 +0,0 @@
|
|||||||
// 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 'edit_label_cubit.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#custom-getters-and-methods');
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
mixin _$EditLabelState {
|
|
||||||
Map<int, Correspondent> get correspondents =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
Map<int, DocumentType> get documentTypes =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
Map<int, Tag> get tags => throw _privateConstructorUsedError;
|
|
||||||
Map<int, StoragePath> get storagePaths => throw _privateConstructorUsedError;
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
$EditLabelStateCopyWith<EditLabelState> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class $EditLabelStateCopyWith<$Res> {
|
|
||||||
factory $EditLabelStateCopyWith(
|
|
||||||
EditLabelState value, $Res Function(EditLabelState) then) =
|
|
||||||
_$EditLabelStateCopyWithImpl<$Res, EditLabelState>;
|
|
||||||
@useResult
|
|
||||||
$Res call(
|
|
||||||
{Map<int, Correspondent> correspondents,
|
|
||||||
Map<int, DocumentType> documentTypes,
|
|
||||||
Map<int, Tag> tags,
|
|
||||||
Map<int, StoragePath> storagePaths});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class _$EditLabelStateCopyWithImpl<$Res, $Val extends EditLabelState>
|
|
||||||
implements $EditLabelStateCopyWith<$Res> {
|
|
||||||
_$EditLabelStateCopyWithImpl(this._value, this._then);
|
|
||||||
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Val _value;
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Res Function($Val) _then;
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? correspondents = null,
|
|
||||||
Object? documentTypes = null,
|
|
||||||
Object? tags = null,
|
|
||||||
Object? storagePaths = null,
|
|
||||||
}) {
|
|
||||||
return _then(_value.copyWith(
|
|
||||||
correspondents: null == correspondents
|
|
||||||
? _value.correspondents
|
|
||||||
: correspondents // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Correspondent>,
|
|
||||||
documentTypes: null == documentTypes
|
|
||||||
? _value.documentTypes
|
|
||||||
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, DocumentType>,
|
|
||||||
tags: null == tags
|
|
||||||
? _value.tags
|
|
||||||
: tags // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Tag>,
|
|
||||||
storagePaths: null == storagePaths
|
|
||||||
? _value.storagePaths
|
|
||||||
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, StoragePath>,
|
|
||||||
) as $Val);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_EditLabelStateCopyWith<$Res>
|
|
||||||
implements $EditLabelStateCopyWith<$Res> {
|
|
||||||
factory _$$_EditLabelStateCopyWith(
|
|
||||||
_$_EditLabelState value, $Res Function(_$_EditLabelState) then) =
|
|
||||||
__$$_EditLabelStateCopyWithImpl<$Res>;
|
|
||||||
@override
|
|
||||||
@useResult
|
|
||||||
$Res call(
|
|
||||||
{Map<int, Correspondent> correspondents,
|
|
||||||
Map<int, DocumentType> documentTypes,
|
|
||||||
Map<int, Tag> tags,
|
|
||||||
Map<int, StoragePath> storagePaths});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_EditLabelStateCopyWithImpl<$Res>
|
|
||||||
extends _$EditLabelStateCopyWithImpl<$Res, _$_EditLabelState>
|
|
||||||
implements _$$_EditLabelStateCopyWith<$Res> {
|
|
||||||
__$$_EditLabelStateCopyWithImpl(
|
|
||||||
_$_EditLabelState _value, $Res Function(_$_EditLabelState) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? correspondents = null,
|
|
||||||
Object? documentTypes = null,
|
|
||||||
Object? tags = null,
|
|
||||||
Object? storagePaths = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$_EditLabelState(
|
|
||||||
correspondents: null == correspondents
|
|
||||||
? _value._correspondents
|
|
||||||
: correspondents // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Correspondent>,
|
|
||||||
documentTypes: null == documentTypes
|
|
||||||
? _value._documentTypes
|
|
||||||
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, DocumentType>,
|
|
||||||
tags: null == tags
|
|
||||||
? _value._tags
|
|
||||||
: tags // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Tag>,
|
|
||||||
storagePaths: null == storagePaths
|
|
||||||
? _value._storagePaths
|
|
||||||
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, StoragePath>,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$_EditLabelState implements _EditLabelState {
|
|
||||||
const _$_EditLabelState(
|
|
||||||
{final Map<int, Correspondent> correspondents = const {},
|
|
||||||
final Map<int, DocumentType> documentTypes = const {},
|
|
||||||
final Map<int, Tag> tags = const {},
|
|
||||||
final Map<int, StoragePath> storagePaths = const {}})
|
|
||||||
: _correspondents = correspondents,
|
|
||||||
_documentTypes = documentTypes,
|
|
||||||
_tags = tags,
|
|
||||||
_storagePaths = storagePaths;
|
|
||||||
|
|
||||||
final Map<int, Correspondent> _correspondents;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, Correspondent> get correspondents {
|
|
||||||
if (_correspondents is EqualUnmodifiableMapView) return _correspondents;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_correspondents);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, DocumentType> _documentTypes;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, DocumentType> get documentTypes {
|
|
||||||
if (_documentTypes is EqualUnmodifiableMapView) return _documentTypes;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_documentTypes);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, Tag> _tags;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, Tag> get tags {
|
|
||||||
if (_tags is EqualUnmodifiableMapView) return _tags;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_tags);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, StoragePath> _storagePaths;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, StoragePath> get storagePaths {
|
|
||||||
if (_storagePaths is EqualUnmodifiableMapView) return _storagePaths;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_storagePaths);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'EditLabelState(correspondents: $correspondents, documentTypes: $documentTypes, tags: $tags, storagePaths: $storagePaths)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$_EditLabelState &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._correspondents, _correspondents) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._documentTypes, _documentTypes) &&
|
|
||||||
const DeepCollectionEquality().equals(other._tags, _tags) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._storagePaths, _storagePaths));
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(
|
|
||||||
runtimeType,
|
|
||||||
const DeepCollectionEquality().hash(_correspondents),
|
|
||||||
const DeepCollectionEquality().hash(_documentTypes),
|
|
||||||
const DeepCollectionEquality().hash(_tags),
|
|
||||||
const DeepCollectionEquality().hash(_storagePaths));
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$_EditLabelStateCopyWith<_$_EditLabelState> get copyWith =>
|
|
||||||
__$$_EditLabelStateCopyWithImpl<_$_EditLabelState>(this, _$identity);
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _EditLabelState implements EditLabelState {
|
|
||||||
const factory _EditLabelState(
|
|
||||||
{final Map<int, Correspondent> correspondents,
|
|
||||||
final Map<int, DocumentType> documentTypes,
|
|
||||||
final Map<int, Tag> tags,
|
|
||||||
final Map<int, StoragePath> storagePaths}) = _$_EditLabelState;
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<int, Correspondent> get correspondents;
|
|
||||||
@override
|
|
||||||
Map<int, DocumentType> get documentTypes;
|
|
||||||
@override
|
|
||||||
Map<int, Tag> get tags;
|
|
||||||
@override
|
|
||||||
Map<int, StoragePath> get storagePaths;
|
|
||||||
@override
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$_EditLabelStateCopyWith<_$_EditLabelState> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
@@ -1,237 +0,0 @@
|
|||||||
// 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 'label_cubit.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#custom-getters-and-methods');
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
mixin _$LabelState {
|
|
||||||
Map<int, Correspondent> get correspondents =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
Map<int, DocumentType> get documentTypes =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
Map<int, Tag> get tags => throw _privateConstructorUsedError;
|
|
||||||
Map<int, StoragePath> get storagePaths => throw _privateConstructorUsedError;
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
$LabelStateCopyWith<LabelState> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class $LabelStateCopyWith<$Res> {
|
|
||||||
factory $LabelStateCopyWith(
|
|
||||||
LabelState value, $Res Function(LabelState) then) =
|
|
||||||
_$LabelStateCopyWithImpl<$Res, LabelState>;
|
|
||||||
@useResult
|
|
||||||
$Res call(
|
|
||||||
{Map<int, Correspondent> correspondents,
|
|
||||||
Map<int, DocumentType> documentTypes,
|
|
||||||
Map<int, Tag> tags,
|
|
||||||
Map<int, StoragePath> storagePaths});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class _$LabelStateCopyWithImpl<$Res, $Val extends LabelState>
|
|
||||||
implements $LabelStateCopyWith<$Res> {
|
|
||||||
_$LabelStateCopyWithImpl(this._value, this._then);
|
|
||||||
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Val _value;
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Res Function($Val) _then;
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? correspondents = null,
|
|
||||||
Object? documentTypes = null,
|
|
||||||
Object? tags = null,
|
|
||||||
Object? storagePaths = null,
|
|
||||||
}) {
|
|
||||||
return _then(_value.copyWith(
|
|
||||||
correspondents: null == correspondents
|
|
||||||
? _value.correspondents
|
|
||||||
: correspondents // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Correspondent>,
|
|
||||||
documentTypes: null == documentTypes
|
|
||||||
? _value.documentTypes
|
|
||||||
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, DocumentType>,
|
|
||||||
tags: null == tags
|
|
||||||
? _value.tags
|
|
||||||
: tags // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Tag>,
|
|
||||||
storagePaths: null == storagePaths
|
|
||||||
? _value.storagePaths
|
|
||||||
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, StoragePath>,
|
|
||||||
) as $Val);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_LabelStateCopyWith<$Res>
|
|
||||||
implements $LabelStateCopyWith<$Res> {
|
|
||||||
factory _$$_LabelStateCopyWith(
|
|
||||||
_$_LabelState value, $Res Function(_$_LabelState) then) =
|
|
||||||
__$$_LabelStateCopyWithImpl<$Res>;
|
|
||||||
@override
|
|
||||||
@useResult
|
|
||||||
$Res call(
|
|
||||||
{Map<int, Correspondent> correspondents,
|
|
||||||
Map<int, DocumentType> documentTypes,
|
|
||||||
Map<int, Tag> tags,
|
|
||||||
Map<int, StoragePath> storagePaths});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_LabelStateCopyWithImpl<$Res>
|
|
||||||
extends _$LabelStateCopyWithImpl<$Res, _$_LabelState>
|
|
||||||
implements _$$_LabelStateCopyWith<$Res> {
|
|
||||||
__$$_LabelStateCopyWithImpl(
|
|
||||||
_$_LabelState _value, $Res Function(_$_LabelState) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? correspondents = null,
|
|
||||||
Object? documentTypes = null,
|
|
||||||
Object? tags = null,
|
|
||||||
Object? storagePaths = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$_LabelState(
|
|
||||||
correspondents: null == correspondents
|
|
||||||
? _value._correspondents
|
|
||||||
: correspondents // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Correspondent>,
|
|
||||||
documentTypes: null == documentTypes
|
|
||||||
? _value._documentTypes
|
|
||||||
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, DocumentType>,
|
|
||||||
tags: null == tags
|
|
||||||
? _value._tags
|
|
||||||
: tags // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, Tag>,
|
|
||||||
storagePaths: null == storagePaths
|
|
||||||
? _value._storagePaths
|
|
||||||
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, StoragePath>,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$_LabelState implements _LabelState {
|
|
||||||
const _$_LabelState(
|
|
||||||
{final Map<int, Correspondent> correspondents = const {},
|
|
||||||
final Map<int, DocumentType> documentTypes = const {},
|
|
||||||
final Map<int, Tag> tags = const {},
|
|
||||||
final Map<int, StoragePath> storagePaths = const {}})
|
|
||||||
: _correspondents = correspondents,
|
|
||||||
_documentTypes = documentTypes,
|
|
||||||
_tags = tags,
|
|
||||||
_storagePaths = storagePaths;
|
|
||||||
|
|
||||||
final Map<int, Correspondent> _correspondents;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, Correspondent> get correspondents {
|
|
||||||
if (_correspondents is EqualUnmodifiableMapView) return _correspondents;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_correspondents);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, DocumentType> _documentTypes;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, DocumentType> get documentTypes {
|
|
||||||
if (_documentTypes is EqualUnmodifiableMapView) return _documentTypes;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_documentTypes);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, Tag> _tags;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, Tag> get tags {
|
|
||||||
if (_tags is EqualUnmodifiableMapView) return _tags;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_tags);
|
|
||||||
}
|
|
||||||
|
|
||||||
final Map<int, StoragePath> _storagePaths;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
Map<int, StoragePath> get storagePaths {
|
|
||||||
if (_storagePaths is EqualUnmodifiableMapView) return _storagePaths;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_storagePaths);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'LabelState(correspondents: $correspondents, documentTypes: $documentTypes, tags: $tags, storagePaths: $storagePaths)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$_LabelState &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._correspondents, _correspondents) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._documentTypes, _documentTypes) &&
|
|
||||||
const DeepCollectionEquality().equals(other._tags, _tags) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._storagePaths, _storagePaths));
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(
|
|
||||||
runtimeType,
|
|
||||||
const DeepCollectionEquality().hash(_correspondents),
|
|
||||||
const DeepCollectionEquality().hash(_documentTypes),
|
|
||||||
const DeepCollectionEquality().hash(_tags),
|
|
||||||
const DeepCollectionEquality().hash(_storagePaths));
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$_LabelStateCopyWith<_$_LabelState> get copyWith =>
|
|
||||||
__$$_LabelStateCopyWithImpl<_$_LabelState>(this, _$identity);
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _LabelState implements LabelState {
|
|
||||||
const factory _LabelState(
|
|
||||||
{final Map<int, Correspondent> correspondents,
|
|
||||||
final Map<int, DocumentType> documentTypes,
|
|
||||||
final Map<int, Tag> tags,
|
|
||||||
final Map<int, StoragePath> storagePaths}) = _$_LabelState;
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<int, Correspondent> get correspondents;
|
|
||||||
@override
|
|
||||||
Map<int, DocumentType> get documentTypes;
|
|
||||||
@override
|
|
||||||
Map<int, Tag> get tags;
|
|
||||||
@override
|
|
||||||
Map<int, StoragePath> get storagePaths;
|
|
||||||
@override
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$_LabelStateCopyWith<_$_LabelState> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
@@ -1,606 +0,0 @@
|
|||||||
// 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 'authentication_cubit.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#custom-getters-and-methods');
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
mixin _$AuthenticationState {
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() unauthenticated,
|
|
||||||
required TResult Function() requriresLocalAuthentication,
|
|
||||||
required TResult Function(String localUserId, int apiVersion) authenticated,
|
|
||||||
required TResult Function() switchingAccounts,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? unauthenticated,
|
|
||||||
TResult? Function()? requriresLocalAuthentication,
|
|
||||||
TResult? Function(String localUserId, int apiVersion)? authenticated,
|
|
||||||
TResult? Function()? switchingAccounts,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? unauthenticated,
|
|
||||||
TResult Function()? requriresLocalAuthentication,
|
|
||||||
TResult Function(String localUserId, int apiVersion)? authenticated,
|
|
||||||
TResult Function()? switchingAccounts,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(_Unauthenticated value) unauthenticated,
|
|
||||||
required TResult Function(_RequiresLocalAuthentication value)
|
|
||||||
requriresLocalAuthentication,
|
|
||||||
required TResult Function(_Authenticated value) authenticated,
|
|
||||||
required TResult Function(_SwitchingAccounts value) switchingAccounts,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(_Unauthenticated value)? unauthenticated,
|
|
||||||
TResult? Function(_RequiresLocalAuthentication value)?
|
|
||||||
requriresLocalAuthentication,
|
|
||||||
TResult? Function(_Authenticated value)? authenticated,
|
|
||||||
TResult? Function(_SwitchingAccounts value)? switchingAccounts,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(_Unauthenticated value)? unauthenticated,
|
|
||||||
TResult Function(_RequiresLocalAuthentication value)?
|
|
||||||
requriresLocalAuthentication,
|
|
||||||
TResult Function(_Authenticated value)? authenticated,
|
|
||||||
TResult Function(_SwitchingAccounts value)? switchingAccounts,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class $AuthenticationStateCopyWith<$Res> {
|
|
||||||
factory $AuthenticationStateCopyWith(
|
|
||||||
AuthenticationState value, $Res Function(AuthenticationState) then) =
|
|
||||||
_$AuthenticationStateCopyWithImpl<$Res, AuthenticationState>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class _$AuthenticationStateCopyWithImpl<$Res, $Val extends AuthenticationState>
|
|
||||||
implements $AuthenticationStateCopyWith<$Res> {
|
|
||||||
_$AuthenticationStateCopyWithImpl(this._value, this._then);
|
|
||||||
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Val _value;
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Res Function($Val) _then;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_UnauthenticatedCopyWith<$Res> {
|
|
||||||
factory _$$_UnauthenticatedCopyWith(
|
|
||||||
_$_Unauthenticated value, $Res Function(_$_Unauthenticated) then) =
|
|
||||||
__$$_UnauthenticatedCopyWithImpl<$Res>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_UnauthenticatedCopyWithImpl<$Res>
|
|
||||||
extends _$AuthenticationStateCopyWithImpl<$Res, _$_Unauthenticated>
|
|
||||||
implements _$$_UnauthenticatedCopyWith<$Res> {
|
|
||||||
__$$_UnauthenticatedCopyWithImpl(
|
|
||||||
_$_Unauthenticated _value, $Res Function(_$_Unauthenticated) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$_Unauthenticated implements _Unauthenticated {
|
|
||||||
const _$_Unauthenticated();
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'AuthenticationState.unauthenticated()';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType && other is _$_Unauthenticated);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => runtimeType.hashCode;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() unauthenticated,
|
|
||||||
required TResult Function() requriresLocalAuthentication,
|
|
||||||
required TResult Function(String localUserId, int apiVersion) authenticated,
|
|
||||||
required TResult Function() switchingAccounts,
|
|
||||||
}) {
|
|
||||||
return unauthenticated();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? unauthenticated,
|
|
||||||
TResult? Function()? requriresLocalAuthentication,
|
|
||||||
TResult? Function(String localUserId, int apiVersion)? authenticated,
|
|
||||||
TResult? Function()? switchingAccounts,
|
|
||||||
}) {
|
|
||||||
return unauthenticated?.call();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? unauthenticated,
|
|
||||||
TResult Function()? requriresLocalAuthentication,
|
|
||||||
TResult Function(String localUserId, int apiVersion)? authenticated,
|
|
||||||
TResult Function()? switchingAccounts,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (unauthenticated != null) {
|
|
||||||
return unauthenticated();
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(_Unauthenticated value) unauthenticated,
|
|
||||||
required TResult Function(_RequiresLocalAuthentication value)
|
|
||||||
requriresLocalAuthentication,
|
|
||||||
required TResult Function(_Authenticated value) authenticated,
|
|
||||||
required TResult Function(_SwitchingAccounts value) switchingAccounts,
|
|
||||||
}) {
|
|
||||||
return unauthenticated(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(_Unauthenticated value)? unauthenticated,
|
|
||||||
TResult? Function(_RequiresLocalAuthentication value)?
|
|
||||||
requriresLocalAuthentication,
|
|
||||||
TResult? Function(_Authenticated value)? authenticated,
|
|
||||||
TResult? Function(_SwitchingAccounts value)? switchingAccounts,
|
|
||||||
}) {
|
|
||||||
return unauthenticated?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(_Unauthenticated value)? unauthenticated,
|
|
||||||
TResult Function(_RequiresLocalAuthentication value)?
|
|
||||||
requriresLocalAuthentication,
|
|
||||||
TResult Function(_Authenticated value)? authenticated,
|
|
||||||
TResult Function(_SwitchingAccounts value)? switchingAccounts,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (unauthenticated != null) {
|
|
||||||
return unauthenticated(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _Unauthenticated implements AuthenticationState {
|
|
||||||
const factory _Unauthenticated() = _$_Unauthenticated;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_RequiresLocalAuthenticationCopyWith<$Res> {
|
|
||||||
factory _$$_RequiresLocalAuthenticationCopyWith(
|
|
||||||
_$_RequiresLocalAuthentication value,
|
|
||||||
$Res Function(_$_RequiresLocalAuthentication) then) =
|
|
||||||
__$$_RequiresLocalAuthenticationCopyWithImpl<$Res>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_RequiresLocalAuthenticationCopyWithImpl<$Res>
|
|
||||||
extends _$AuthenticationStateCopyWithImpl<$Res,
|
|
||||||
_$_RequiresLocalAuthentication>
|
|
||||||
implements _$$_RequiresLocalAuthenticationCopyWith<$Res> {
|
|
||||||
__$$_RequiresLocalAuthenticationCopyWithImpl(
|
|
||||||
_$_RequiresLocalAuthentication _value,
|
|
||||||
$Res Function(_$_RequiresLocalAuthentication) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$_RequiresLocalAuthentication implements _RequiresLocalAuthentication {
|
|
||||||
const _$_RequiresLocalAuthentication();
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'AuthenticationState.requriresLocalAuthentication()';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$_RequiresLocalAuthentication);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => runtimeType.hashCode;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() unauthenticated,
|
|
||||||
required TResult Function() requriresLocalAuthentication,
|
|
||||||
required TResult Function(String localUserId, int apiVersion) authenticated,
|
|
||||||
required TResult Function() switchingAccounts,
|
|
||||||
}) {
|
|
||||||
return requriresLocalAuthentication();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? unauthenticated,
|
|
||||||
TResult? Function()? requriresLocalAuthentication,
|
|
||||||
TResult? Function(String localUserId, int apiVersion)? authenticated,
|
|
||||||
TResult? Function()? switchingAccounts,
|
|
||||||
}) {
|
|
||||||
return requriresLocalAuthentication?.call();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? unauthenticated,
|
|
||||||
TResult Function()? requriresLocalAuthentication,
|
|
||||||
TResult Function(String localUserId, int apiVersion)? authenticated,
|
|
||||||
TResult Function()? switchingAccounts,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (requriresLocalAuthentication != null) {
|
|
||||||
return requriresLocalAuthentication();
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(_Unauthenticated value) unauthenticated,
|
|
||||||
required TResult Function(_RequiresLocalAuthentication value)
|
|
||||||
requriresLocalAuthentication,
|
|
||||||
required TResult Function(_Authenticated value) authenticated,
|
|
||||||
required TResult Function(_SwitchingAccounts value) switchingAccounts,
|
|
||||||
}) {
|
|
||||||
return requriresLocalAuthentication(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(_Unauthenticated value)? unauthenticated,
|
|
||||||
TResult? Function(_RequiresLocalAuthentication value)?
|
|
||||||
requriresLocalAuthentication,
|
|
||||||
TResult? Function(_Authenticated value)? authenticated,
|
|
||||||
TResult? Function(_SwitchingAccounts value)? switchingAccounts,
|
|
||||||
}) {
|
|
||||||
return requriresLocalAuthentication?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(_Unauthenticated value)? unauthenticated,
|
|
||||||
TResult Function(_RequiresLocalAuthentication value)?
|
|
||||||
requriresLocalAuthentication,
|
|
||||||
TResult Function(_Authenticated value)? authenticated,
|
|
||||||
TResult Function(_SwitchingAccounts value)? switchingAccounts,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (requriresLocalAuthentication != null) {
|
|
||||||
return requriresLocalAuthentication(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _RequiresLocalAuthentication implements AuthenticationState {
|
|
||||||
const factory _RequiresLocalAuthentication() = _$_RequiresLocalAuthentication;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_AuthenticatedCopyWith<$Res> {
|
|
||||||
factory _$$_AuthenticatedCopyWith(
|
|
||||||
_$_Authenticated value, $Res Function(_$_Authenticated) then) =
|
|
||||||
__$$_AuthenticatedCopyWithImpl<$Res>;
|
|
||||||
@useResult
|
|
||||||
$Res call({String localUserId, int apiVersion});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_AuthenticatedCopyWithImpl<$Res>
|
|
||||||
extends _$AuthenticationStateCopyWithImpl<$Res, _$_Authenticated>
|
|
||||||
implements _$$_AuthenticatedCopyWith<$Res> {
|
|
||||||
__$$_AuthenticatedCopyWithImpl(
|
|
||||||
_$_Authenticated _value, $Res Function(_$_Authenticated) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? localUserId = null,
|
|
||||||
Object? apiVersion = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$_Authenticated(
|
|
||||||
localUserId: null == localUserId
|
|
||||||
? _value.localUserId
|
|
||||||
: localUserId // ignore: cast_nullable_to_non_nullable
|
|
||||||
as String,
|
|
||||||
apiVersion: null == apiVersion
|
|
||||||
? _value.apiVersion
|
|
||||||
: apiVersion // ignore: cast_nullable_to_non_nullable
|
|
||||||
as int,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$_Authenticated implements _Authenticated {
|
|
||||||
const _$_Authenticated({required this.localUserId, required this.apiVersion});
|
|
||||||
|
|
||||||
@override
|
|
||||||
final String localUserId;
|
|
||||||
@override
|
|
||||||
final int apiVersion;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'AuthenticationState.authenticated(localUserId: $localUserId, apiVersion: $apiVersion)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$_Authenticated &&
|
|
||||||
(identical(other.localUserId, localUserId) ||
|
|
||||||
other.localUserId == localUserId) &&
|
|
||||||
(identical(other.apiVersion, apiVersion) ||
|
|
||||||
other.apiVersion == apiVersion));
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(runtimeType, localUserId, apiVersion);
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$_AuthenticatedCopyWith<_$_Authenticated> get copyWith =>
|
|
||||||
__$$_AuthenticatedCopyWithImpl<_$_Authenticated>(this, _$identity);
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() unauthenticated,
|
|
||||||
required TResult Function() requriresLocalAuthentication,
|
|
||||||
required TResult Function(String localUserId, int apiVersion) authenticated,
|
|
||||||
required TResult Function() switchingAccounts,
|
|
||||||
}) {
|
|
||||||
return authenticated(localUserId, apiVersion);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? unauthenticated,
|
|
||||||
TResult? Function()? requriresLocalAuthentication,
|
|
||||||
TResult? Function(String localUserId, int apiVersion)? authenticated,
|
|
||||||
TResult? Function()? switchingAccounts,
|
|
||||||
}) {
|
|
||||||
return authenticated?.call(localUserId, apiVersion);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? unauthenticated,
|
|
||||||
TResult Function()? requriresLocalAuthentication,
|
|
||||||
TResult Function(String localUserId, int apiVersion)? authenticated,
|
|
||||||
TResult Function()? switchingAccounts,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (authenticated != null) {
|
|
||||||
return authenticated(localUserId, apiVersion);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(_Unauthenticated value) unauthenticated,
|
|
||||||
required TResult Function(_RequiresLocalAuthentication value)
|
|
||||||
requriresLocalAuthentication,
|
|
||||||
required TResult Function(_Authenticated value) authenticated,
|
|
||||||
required TResult Function(_SwitchingAccounts value) switchingAccounts,
|
|
||||||
}) {
|
|
||||||
return authenticated(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(_Unauthenticated value)? unauthenticated,
|
|
||||||
TResult? Function(_RequiresLocalAuthentication value)?
|
|
||||||
requriresLocalAuthentication,
|
|
||||||
TResult? Function(_Authenticated value)? authenticated,
|
|
||||||
TResult? Function(_SwitchingAccounts value)? switchingAccounts,
|
|
||||||
}) {
|
|
||||||
return authenticated?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(_Unauthenticated value)? unauthenticated,
|
|
||||||
TResult Function(_RequiresLocalAuthentication value)?
|
|
||||||
requriresLocalAuthentication,
|
|
||||||
TResult Function(_Authenticated value)? authenticated,
|
|
||||||
TResult Function(_SwitchingAccounts value)? switchingAccounts,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (authenticated != null) {
|
|
||||||
return authenticated(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _Authenticated implements AuthenticationState {
|
|
||||||
const factory _Authenticated(
|
|
||||||
{required final String localUserId,
|
|
||||||
required final int apiVersion}) = _$_Authenticated;
|
|
||||||
|
|
||||||
String get localUserId;
|
|
||||||
int get apiVersion;
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$_AuthenticatedCopyWith<_$_Authenticated> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_SwitchingAccountsCopyWith<$Res> {
|
|
||||||
factory _$$_SwitchingAccountsCopyWith(_$_SwitchingAccounts value,
|
|
||||||
$Res Function(_$_SwitchingAccounts) then) =
|
|
||||||
__$$_SwitchingAccountsCopyWithImpl<$Res>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_SwitchingAccountsCopyWithImpl<$Res>
|
|
||||||
extends _$AuthenticationStateCopyWithImpl<$Res, _$_SwitchingAccounts>
|
|
||||||
implements _$$_SwitchingAccountsCopyWith<$Res> {
|
|
||||||
__$$_SwitchingAccountsCopyWithImpl(
|
|
||||||
_$_SwitchingAccounts _value, $Res Function(_$_SwitchingAccounts) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$_SwitchingAccounts implements _SwitchingAccounts {
|
|
||||||
const _$_SwitchingAccounts();
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'AuthenticationState.switchingAccounts()';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType && other is _$_SwitchingAccounts);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => runtimeType.hashCode;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() unauthenticated,
|
|
||||||
required TResult Function() requriresLocalAuthentication,
|
|
||||||
required TResult Function(String localUserId, int apiVersion) authenticated,
|
|
||||||
required TResult Function() switchingAccounts,
|
|
||||||
}) {
|
|
||||||
return switchingAccounts();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? unauthenticated,
|
|
||||||
TResult? Function()? requriresLocalAuthentication,
|
|
||||||
TResult? Function(String localUserId, int apiVersion)? authenticated,
|
|
||||||
TResult? Function()? switchingAccounts,
|
|
||||||
}) {
|
|
||||||
return switchingAccounts?.call();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? unauthenticated,
|
|
||||||
TResult Function()? requriresLocalAuthentication,
|
|
||||||
TResult Function(String localUserId, int apiVersion)? authenticated,
|
|
||||||
TResult Function()? switchingAccounts,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (switchingAccounts != null) {
|
|
||||||
return switchingAccounts();
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(_Unauthenticated value) unauthenticated,
|
|
||||||
required TResult Function(_RequiresLocalAuthentication value)
|
|
||||||
requriresLocalAuthentication,
|
|
||||||
required TResult Function(_Authenticated value) authenticated,
|
|
||||||
required TResult Function(_SwitchingAccounts value) switchingAccounts,
|
|
||||||
}) {
|
|
||||||
return switchingAccounts(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(_Unauthenticated value)? unauthenticated,
|
|
||||||
TResult? Function(_RequiresLocalAuthentication value)?
|
|
||||||
requriresLocalAuthentication,
|
|
||||||
TResult? Function(_Authenticated value)? authenticated,
|
|
||||||
TResult? Function(_SwitchingAccounts value)? switchingAccounts,
|
|
||||||
}) {
|
|
||||||
return switchingAccounts?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(_Unauthenticated value)? unauthenticated,
|
|
||||||
TResult Function(_RequiresLocalAuthentication value)?
|
|
||||||
requriresLocalAuthentication,
|
|
||||||
TResult Function(_Authenticated value)? authenticated,
|
|
||||||
TResult Function(_SwitchingAccounts value)? switchingAccounts,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (switchingAccounts != null) {
|
|
||||||
return switchingAccounts(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _SwitchingAccounts implements AuthenticationState {
|
|
||||||
const factory _SwitchingAccounts() = _$_SwitchingAccounts;
|
|
||||||
}
|
|
||||||
@@ -1,585 +0,0 @@
|
|||||||
// 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 'saved_view_cubit.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#custom-getters-and-methods');
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
mixin _$SavedViewState {
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() initial,
|
|
||||||
required TResult Function() loading,
|
|
||||||
required TResult Function(Map<int, SavedView> savedViews) loaded,
|
|
||||||
required TResult Function() error,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? initial,
|
|
||||||
TResult? Function()? loading,
|
|
||||||
TResult? Function(Map<int, SavedView> savedViews)? loaded,
|
|
||||||
TResult? Function()? error,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? initial,
|
|
||||||
TResult Function()? loading,
|
|
||||||
TResult Function(Map<int, SavedView> savedViews)? loaded,
|
|
||||||
TResult Function()? error,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(_SavedViewIntialState value) initial,
|
|
||||||
required TResult Function(_SavedViewLoadingState value) loading,
|
|
||||||
required TResult Function(_SavedViewLoadedState value) loaded,
|
|
||||||
required TResult Function(_SavedViewErrorState value) error,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(_SavedViewIntialState value)? initial,
|
|
||||||
TResult? Function(_SavedViewLoadingState value)? loading,
|
|
||||||
TResult? Function(_SavedViewLoadedState value)? loaded,
|
|
||||||
TResult? Function(_SavedViewErrorState value)? error,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(_SavedViewIntialState value)? initial,
|
|
||||||
TResult Function(_SavedViewLoadingState value)? loading,
|
|
||||||
TResult Function(_SavedViewLoadedState value)? loaded,
|
|
||||||
TResult Function(_SavedViewErrorState value)? error,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class $SavedViewStateCopyWith<$Res> {
|
|
||||||
factory $SavedViewStateCopyWith(
|
|
||||||
SavedViewState value, $Res Function(SavedViewState) then) =
|
|
||||||
_$SavedViewStateCopyWithImpl<$Res, SavedViewState>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class _$SavedViewStateCopyWithImpl<$Res, $Val extends SavedViewState>
|
|
||||||
implements $SavedViewStateCopyWith<$Res> {
|
|
||||||
_$SavedViewStateCopyWithImpl(this._value, this._then);
|
|
||||||
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Val _value;
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Res Function($Val) _then;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_SavedViewIntialStateCopyWith<$Res> {
|
|
||||||
factory _$$_SavedViewIntialStateCopyWith(_$_SavedViewIntialState value,
|
|
||||||
$Res Function(_$_SavedViewIntialState) then) =
|
|
||||||
__$$_SavedViewIntialStateCopyWithImpl<$Res>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_SavedViewIntialStateCopyWithImpl<$Res>
|
|
||||||
extends _$SavedViewStateCopyWithImpl<$Res, _$_SavedViewIntialState>
|
|
||||||
implements _$$_SavedViewIntialStateCopyWith<$Res> {
|
|
||||||
__$$_SavedViewIntialStateCopyWithImpl(_$_SavedViewIntialState _value,
|
|
||||||
$Res Function(_$_SavedViewIntialState) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$_SavedViewIntialState implements _SavedViewIntialState {
|
|
||||||
const _$_SavedViewIntialState();
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'SavedViewState.initial()';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType && other is _$_SavedViewIntialState);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => runtimeType.hashCode;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() initial,
|
|
||||||
required TResult Function() loading,
|
|
||||||
required TResult Function(Map<int, SavedView> savedViews) loaded,
|
|
||||||
required TResult Function() error,
|
|
||||||
}) {
|
|
||||||
return initial();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? initial,
|
|
||||||
TResult? Function()? loading,
|
|
||||||
TResult? Function(Map<int, SavedView> savedViews)? loaded,
|
|
||||||
TResult? Function()? error,
|
|
||||||
}) {
|
|
||||||
return initial?.call();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? initial,
|
|
||||||
TResult Function()? loading,
|
|
||||||
TResult Function(Map<int, SavedView> savedViews)? loaded,
|
|
||||||
TResult Function()? error,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (initial != null) {
|
|
||||||
return initial();
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(_SavedViewIntialState value) initial,
|
|
||||||
required TResult Function(_SavedViewLoadingState value) loading,
|
|
||||||
required TResult Function(_SavedViewLoadedState value) loaded,
|
|
||||||
required TResult Function(_SavedViewErrorState value) error,
|
|
||||||
}) {
|
|
||||||
return initial(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(_SavedViewIntialState value)? initial,
|
|
||||||
TResult? Function(_SavedViewLoadingState value)? loading,
|
|
||||||
TResult? Function(_SavedViewLoadedState value)? loaded,
|
|
||||||
TResult? Function(_SavedViewErrorState value)? error,
|
|
||||||
}) {
|
|
||||||
return initial?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(_SavedViewIntialState value)? initial,
|
|
||||||
TResult Function(_SavedViewLoadingState value)? loading,
|
|
||||||
TResult Function(_SavedViewLoadedState value)? loaded,
|
|
||||||
TResult Function(_SavedViewErrorState value)? error,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (initial != null) {
|
|
||||||
return initial(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _SavedViewIntialState implements SavedViewState {
|
|
||||||
const factory _SavedViewIntialState() = _$_SavedViewIntialState;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_SavedViewLoadingStateCopyWith<$Res> {
|
|
||||||
factory _$$_SavedViewLoadingStateCopyWith(_$_SavedViewLoadingState value,
|
|
||||||
$Res Function(_$_SavedViewLoadingState) then) =
|
|
||||||
__$$_SavedViewLoadingStateCopyWithImpl<$Res>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_SavedViewLoadingStateCopyWithImpl<$Res>
|
|
||||||
extends _$SavedViewStateCopyWithImpl<$Res, _$_SavedViewLoadingState>
|
|
||||||
implements _$$_SavedViewLoadingStateCopyWith<$Res> {
|
|
||||||
__$$_SavedViewLoadingStateCopyWithImpl(_$_SavedViewLoadingState _value,
|
|
||||||
$Res Function(_$_SavedViewLoadingState) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$_SavedViewLoadingState implements _SavedViewLoadingState {
|
|
||||||
const _$_SavedViewLoadingState();
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'SavedViewState.loading()';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType && other is _$_SavedViewLoadingState);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => runtimeType.hashCode;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() initial,
|
|
||||||
required TResult Function() loading,
|
|
||||||
required TResult Function(Map<int, SavedView> savedViews) loaded,
|
|
||||||
required TResult Function() error,
|
|
||||||
}) {
|
|
||||||
return loading();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? initial,
|
|
||||||
TResult? Function()? loading,
|
|
||||||
TResult? Function(Map<int, SavedView> savedViews)? loaded,
|
|
||||||
TResult? Function()? error,
|
|
||||||
}) {
|
|
||||||
return loading?.call();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? initial,
|
|
||||||
TResult Function()? loading,
|
|
||||||
TResult Function(Map<int, SavedView> savedViews)? loaded,
|
|
||||||
TResult Function()? error,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (loading != null) {
|
|
||||||
return loading();
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(_SavedViewIntialState value) initial,
|
|
||||||
required TResult Function(_SavedViewLoadingState value) loading,
|
|
||||||
required TResult Function(_SavedViewLoadedState value) loaded,
|
|
||||||
required TResult Function(_SavedViewErrorState value) error,
|
|
||||||
}) {
|
|
||||||
return loading(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(_SavedViewIntialState value)? initial,
|
|
||||||
TResult? Function(_SavedViewLoadingState value)? loading,
|
|
||||||
TResult? Function(_SavedViewLoadedState value)? loaded,
|
|
||||||
TResult? Function(_SavedViewErrorState value)? error,
|
|
||||||
}) {
|
|
||||||
return loading?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(_SavedViewIntialState value)? initial,
|
|
||||||
TResult Function(_SavedViewLoadingState value)? loading,
|
|
||||||
TResult Function(_SavedViewLoadedState value)? loaded,
|
|
||||||
TResult Function(_SavedViewErrorState value)? error,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (loading != null) {
|
|
||||||
return loading(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _SavedViewLoadingState implements SavedViewState {
|
|
||||||
const factory _SavedViewLoadingState() = _$_SavedViewLoadingState;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_SavedViewLoadedStateCopyWith<$Res> {
|
|
||||||
factory _$$_SavedViewLoadedStateCopyWith(_$_SavedViewLoadedState value,
|
|
||||||
$Res Function(_$_SavedViewLoadedState) then) =
|
|
||||||
__$$_SavedViewLoadedStateCopyWithImpl<$Res>;
|
|
||||||
@useResult
|
|
||||||
$Res call({Map<int, SavedView> savedViews});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_SavedViewLoadedStateCopyWithImpl<$Res>
|
|
||||||
extends _$SavedViewStateCopyWithImpl<$Res, _$_SavedViewLoadedState>
|
|
||||||
implements _$$_SavedViewLoadedStateCopyWith<$Res> {
|
|
||||||
__$$_SavedViewLoadedStateCopyWithImpl(_$_SavedViewLoadedState _value,
|
|
||||||
$Res Function(_$_SavedViewLoadedState) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? savedViews = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$_SavedViewLoadedState(
|
|
||||||
savedViews: null == savedViews
|
|
||||||
? _value._savedViews
|
|
||||||
: savedViews // ignore: cast_nullable_to_non_nullable
|
|
||||||
as Map<int, SavedView>,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$_SavedViewLoadedState implements _SavedViewLoadedState {
|
|
||||||
const _$_SavedViewLoadedState({required final Map<int, SavedView> savedViews})
|
|
||||||
: _savedViews = savedViews;
|
|
||||||
|
|
||||||
final Map<int, SavedView> _savedViews;
|
|
||||||
@override
|
|
||||||
Map<int, SavedView> get savedViews {
|
|
||||||
if (_savedViews is EqualUnmodifiableMapView) return _savedViews;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableMapView(_savedViews);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'SavedViewState.loaded(savedViews: $savedViews)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$_SavedViewLoadedState &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._savedViews, _savedViews));
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(
|
|
||||||
runtimeType, const DeepCollectionEquality().hash(_savedViews));
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$_SavedViewLoadedStateCopyWith<_$_SavedViewLoadedState> get copyWith =>
|
|
||||||
__$$_SavedViewLoadedStateCopyWithImpl<_$_SavedViewLoadedState>(
|
|
||||||
this, _$identity);
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() initial,
|
|
||||||
required TResult Function() loading,
|
|
||||||
required TResult Function(Map<int, SavedView> savedViews) loaded,
|
|
||||||
required TResult Function() error,
|
|
||||||
}) {
|
|
||||||
return loaded(savedViews);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? initial,
|
|
||||||
TResult? Function()? loading,
|
|
||||||
TResult? Function(Map<int, SavedView> savedViews)? loaded,
|
|
||||||
TResult? Function()? error,
|
|
||||||
}) {
|
|
||||||
return loaded?.call(savedViews);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? initial,
|
|
||||||
TResult Function()? loading,
|
|
||||||
TResult Function(Map<int, SavedView> savedViews)? loaded,
|
|
||||||
TResult Function()? error,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (loaded != null) {
|
|
||||||
return loaded(savedViews);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(_SavedViewIntialState value) initial,
|
|
||||||
required TResult Function(_SavedViewLoadingState value) loading,
|
|
||||||
required TResult Function(_SavedViewLoadedState value) loaded,
|
|
||||||
required TResult Function(_SavedViewErrorState value) error,
|
|
||||||
}) {
|
|
||||||
return loaded(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(_SavedViewIntialState value)? initial,
|
|
||||||
TResult? Function(_SavedViewLoadingState value)? loading,
|
|
||||||
TResult? Function(_SavedViewLoadedState value)? loaded,
|
|
||||||
TResult? Function(_SavedViewErrorState value)? error,
|
|
||||||
}) {
|
|
||||||
return loaded?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(_SavedViewIntialState value)? initial,
|
|
||||||
TResult Function(_SavedViewLoadingState value)? loading,
|
|
||||||
TResult Function(_SavedViewLoadedState value)? loaded,
|
|
||||||
TResult Function(_SavedViewErrorState value)? error,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (loaded != null) {
|
|
||||||
return loaded(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _SavedViewLoadedState implements SavedViewState {
|
|
||||||
const factory _SavedViewLoadedState(
|
|
||||||
{required final Map<int, SavedView> savedViews}) =
|
|
||||||
_$_SavedViewLoadedState;
|
|
||||||
|
|
||||||
Map<int, SavedView> get savedViews;
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$_SavedViewLoadedStateCopyWith<_$_SavedViewLoadedState> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_SavedViewErrorStateCopyWith<$Res> {
|
|
||||||
factory _$$_SavedViewErrorStateCopyWith(_$_SavedViewErrorState value,
|
|
||||||
$Res Function(_$_SavedViewErrorState) then) =
|
|
||||||
__$$_SavedViewErrorStateCopyWithImpl<$Res>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_SavedViewErrorStateCopyWithImpl<$Res>
|
|
||||||
extends _$SavedViewStateCopyWithImpl<$Res, _$_SavedViewErrorState>
|
|
||||||
implements _$$_SavedViewErrorStateCopyWith<$Res> {
|
|
||||||
__$$_SavedViewErrorStateCopyWithImpl(_$_SavedViewErrorState _value,
|
|
||||||
$Res Function(_$_SavedViewErrorState) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$_SavedViewErrorState implements _SavedViewErrorState {
|
|
||||||
const _$_SavedViewErrorState();
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'SavedViewState.error()';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType && other is _$_SavedViewErrorState);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => runtimeType.hashCode;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() initial,
|
|
||||||
required TResult Function() loading,
|
|
||||||
required TResult Function(Map<int, SavedView> savedViews) loaded,
|
|
||||||
required TResult Function() error,
|
|
||||||
}) {
|
|
||||||
return error();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? initial,
|
|
||||||
TResult? Function()? loading,
|
|
||||||
TResult? Function(Map<int, SavedView> savedViews)? loaded,
|
|
||||||
TResult? Function()? error,
|
|
||||||
}) {
|
|
||||||
return error?.call();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? initial,
|
|
||||||
TResult Function()? loading,
|
|
||||||
TResult Function(Map<int, SavedView> savedViews)? loaded,
|
|
||||||
TResult Function()? error,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (error != null) {
|
|
||||||
return error();
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(_SavedViewIntialState value) initial,
|
|
||||||
required TResult Function(_SavedViewLoadingState value) loading,
|
|
||||||
required TResult Function(_SavedViewLoadedState value) loaded,
|
|
||||||
required TResult Function(_SavedViewErrorState value) error,
|
|
||||||
}) {
|
|
||||||
return error(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(_SavedViewIntialState value)? initial,
|
|
||||||
TResult? Function(_SavedViewLoadingState value)? loading,
|
|
||||||
TResult? Function(_SavedViewLoadedState value)? loaded,
|
|
||||||
TResult? Function(_SavedViewErrorState value)? error,
|
|
||||||
}) {
|
|
||||||
return error?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(_SavedViewIntialState value)? initial,
|
|
||||||
TResult Function(_SavedViewLoadingState value)? loading,
|
|
||||||
TResult Function(_SavedViewLoadedState value)? loaded,
|
|
||||||
TResult Function(_SavedViewErrorState value)? error,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (error != null) {
|
|
||||||
return error(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _SavedViewErrorState implements SavedViewState {
|
|
||||||
const factory _SavedViewErrorState() = _$_SavedViewErrorState;
|
|
||||||
}
|
|
||||||
@@ -1,212 +0,0 @@
|
|||||||
// 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 'group_model.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#custom-getters-and-methods');
|
|
||||||
|
|
||||||
GroupModel _$GroupModelFromJson(Map<String, dynamic> json) {
|
|
||||||
return _GroupModel.fromJson(json);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
mixin _$GroupModel {
|
|
||||||
@HiveField(0)
|
|
||||||
int get id => throw _privateConstructorUsedError;
|
|
||||||
@HiveField(1)
|
|
||||||
String get name => throw _privateConstructorUsedError;
|
|
||||||
@HiveField(2)
|
|
||||||
List<String> get permissions => throw _privateConstructorUsedError;
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
$GroupModelCopyWith<GroupModel> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class $GroupModelCopyWith<$Res> {
|
|
||||||
factory $GroupModelCopyWith(
|
|
||||||
GroupModel value, $Res Function(GroupModel) then) =
|
|
||||||
_$GroupModelCopyWithImpl<$Res, GroupModel>;
|
|
||||||
@useResult
|
|
||||||
$Res call(
|
|
||||||
{@HiveField(0) int id,
|
|
||||||
@HiveField(1) String name,
|
|
||||||
@HiveField(2) List<String> permissions});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class _$GroupModelCopyWithImpl<$Res, $Val extends GroupModel>
|
|
||||||
implements $GroupModelCopyWith<$Res> {
|
|
||||||
_$GroupModelCopyWithImpl(this._value, this._then);
|
|
||||||
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Val _value;
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Res Function($Val) _then;
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? id = null,
|
|
||||||
Object? name = null,
|
|
||||||
Object? permissions = null,
|
|
||||||
}) {
|
|
||||||
return _then(_value.copyWith(
|
|
||||||
id: null == id
|
|
||||||
? _value.id
|
|
||||||
: id // ignore: cast_nullable_to_non_nullable
|
|
||||||
as int,
|
|
||||||
name: null == name
|
|
||||||
? _value.name
|
|
||||||
: name // ignore: cast_nullable_to_non_nullable
|
|
||||||
as String,
|
|
||||||
permissions: null == permissions
|
|
||||||
? _value.permissions
|
|
||||||
: permissions // ignore: cast_nullable_to_non_nullable
|
|
||||||
as List<String>,
|
|
||||||
) as $Val);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_GroupModelCopyWith<$Res>
|
|
||||||
implements $GroupModelCopyWith<$Res> {
|
|
||||||
factory _$$_GroupModelCopyWith(
|
|
||||||
_$_GroupModel value, $Res Function(_$_GroupModel) then) =
|
|
||||||
__$$_GroupModelCopyWithImpl<$Res>;
|
|
||||||
@override
|
|
||||||
@useResult
|
|
||||||
$Res call(
|
|
||||||
{@HiveField(0) int id,
|
|
||||||
@HiveField(1) String name,
|
|
||||||
@HiveField(2) List<String> permissions});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_GroupModelCopyWithImpl<$Res>
|
|
||||||
extends _$GroupModelCopyWithImpl<$Res, _$_GroupModel>
|
|
||||||
implements _$$_GroupModelCopyWith<$Res> {
|
|
||||||
__$$_GroupModelCopyWithImpl(
|
|
||||||
_$_GroupModel _value, $Res Function(_$_GroupModel) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? id = null,
|
|
||||||
Object? name = null,
|
|
||||||
Object? permissions = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$_GroupModel(
|
|
||||||
id: null == id
|
|
||||||
? _value.id
|
|
||||||
: id // ignore: cast_nullable_to_non_nullable
|
|
||||||
as int,
|
|
||||||
name: null == name
|
|
||||||
? _value.name
|
|
||||||
: name // ignore: cast_nullable_to_non_nullable
|
|
||||||
as String,
|
|
||||||
permissions: null == permissions
|
|
||||||
? _value._permissions
|
|
||||||
: permissions // ignore: cast_nullable_to_non_nullable
|
|
||||||
as List<String>,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
@JsonSerializable()
|
|
||||||
class _$_GroupModel implements _GroupModel {
|
|
||||||
const _$_GroupModel(
|
|
||||||
{@HiveField(0) required this.id,
|
|
||||||
@HiveField(1) required this.name,
|
|
||||||
@HiveField(2) required final List<String> permissions})
|
|
||||||
: _permissions = permissions;
|
|
||||||
|
|
||||||
factory _$_GroupModel.fromJson(Map<String, dynamic> json) =>
|
|
||||||
_$$_GroupModelFromJson(json);
|
|
||||||
|
|
||||||
@override
|
|
||||||
@HiveField(0)
|
|
||||||
final int id;
|
|
||||||
@override
|
|
||||||
@HiveField(1)
|
|
||||||
final String name;
|
|
||||||
final List<String> _permissions;
|
|
||||||
@override
|
|
||||||
@HiveField(2)
|
|
||||||
List<String> get permissions {
|
|
||||||
if (_permissions is EqualUnmodifiableListView) return _permissions;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableListView(_permissions);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'GroupModel(id: $id, name: $name, permissions: $permissions)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$_GroupModel &&
|
|
||||||
(identical(other.id, id) || other.id == id) &&
|
|
||||||
(identical(other.name, name) || other.name == name) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._permissions, _permissions));
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(
|
|
||||||
runtimeType, id, name, const DeepCollectionEquality().hash(_permissions));
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$_GroupModelCopyWith<_$_GroupModel> get copyWith =>
|
|
||||||
__$$_GroupModelCopyWithImpl<_$_GroupModel>(this, _$identity);
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
return _$$_GroupModelToJson(
|
|
||||||
this,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _GroupModel implements GroupModel {
|
|
||||||
const factory _GroupModel(
|
|
||||||
{@HiveField(0) required final int id,
|
|
||||||
@HiveField(1) required final String name,
|
|
||||||
@HiveField(2) required final List<String> permissions}) = _$_GroupModel;
|
|
||||||
|
|
||||||
factory _GroupModel.fromJson(Map<String, dynamic> json) =
|
|
||||||
_$_GroupModel.fromJson;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@HiveField(0)
|
|
||||||
int get id;
|
|
||||||
@override
|
|
||||||
@HiveField(1)
|
|
||||||
String get name;
|
|
||||||
@override
|
|
||||||
@HiveField(2)
|
|
||||||
List<String> get permissions;
|
|
||||||
@override
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$_GroupModelCopyWith<_$_GroupModel> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
@@ -1,195 +0,0 @@
|
|||||||
// 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 'permissions.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#custom-getters-and-methods');
|
|
||||||
|
|
||||||
Permissions _$PermissionsFromJson(Map<String, dynamic> json) {
|
|
||||||
return _Permissions.fromJson(json);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
mixin _$Permissions {
|
|
||||||
@HiveField(0)
|
|
||||||
List<int> get view => throw _privateConstructorUsedError;
|
|
||||||
@HiveField(1)
|
|
||||||
List<int> get change => throw _privateConstructorUsedError;
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
$PermissionsCopyWith<Permissions> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class $PermissionsCopyWith<$Res> {
|
|
||||||
factory $PermissionsCopyWith(
|
|
||||||
Permissions value, $Res Function(Permissions) then) =
|
|
||||||
_$PermissionsCopyWithImpl<$Res, Permissions>;
|
|
||||||
@useResult
|
|
||||||
$Res call({@HiveField(0) List<int> view, @HiveField(1) List<int> change});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class _$PermissionsCopyWithImpl<$Res, $Val extends Permissions>
|
|
||||||
implements $PermissionsCopyWith<$Res> {
|
|
||||||
_$PermissionsCopyWithImpl(this._value, this._then);
|
|
||||||
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Val _value;
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Res Function($Val) _then;
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? view = null,
|
|
||||||
Object? change = null,
|
|
||||||
}) {
|
|
||||||
return _then(_value.copyWith(
|
|
||||||
view: null == view
|
|
||||||
? _value.view
|
|
||||||
: view // ignore: cast_nullable_to_non_nullable
|
|
||||||
as List<int>,
|
|
||||||
change: null == change
|
|
||||||
? _value.change
|
|
||||||
: change // ignore: cast_nullable_to_non_nullable
|
|
||||||
as List<int>,
|
|
||||||
) as $Val);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$_PermissionsCopyWith<$Res>
|
|
||||||
implements $PermissionsCopyWith<$Res> {
|
|
||||||
factory _$$_PermissionsCopyWith(
|
|
||||||
_$_Permissions value, $Res Function(_$_Permissions) then) =
|
|
||||||
__$$_PermissionsCopyWithImpl<$Res>;
|
|
||||||
@override
|
|
||||||
@useResult
|
|
||||||
$Res call({@HiveField(0) List<int> view, @HiveField(1) List<int> change});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$_PermissionsCopyWithImpl<$Res>
|
|
||||||
extends _$PermissionsCopyWithImpl<$Res, _$_Permissions>
|
|
||||||
implements _$$_PermissionsCopyWith<$Res> {
|
|
||||||
__$$_PermissionsCopyWithImpl(
|
|
||||||
_$_Permissions _value, $Res Function(_$_Permissions) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? view = null,
|
|
||||||
Object? change = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$_Permissions(
|
|
||||||
view: null == view
|
|
||||||
? _value._view
|
|
||||||
: view // ignore: cast_nullable_to_non_nullable
|
|
||||||
as List<int>,
|
|
||||||
change: null == change
|
|
||||||
? _value._change
|
|
||||||
: change // ignore: cast_nullable_to_non_nullable
|
|
||||||
as List<int>,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
@JsonSerializable()
|
|
||||||
class _$_Permissions implements _Permissions {
|
|
||||||
const _$_Permissions(
|
|
||||||
{@HiveField(0) final List<int> view = const [],
|
|
||||||
@HiveField(1) final List<int> change = const []})
|
|
||||||
: _view = view,
|
|
||||||
_change = change;
|
|
||||||
|
|
||||||
factory _$_Permissions.fromJson(Map<String, dynamic> json) =>
|
|
||||||
_$$_PermissionsFromJson(json);
|
|
||||||
|
|
||||||
final List<int> _view;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
@HiveField(0)
|
|
||||||
List<int> get view {
|
|
||||||
if (_view is EqualUnmodifiableListView) return _view;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableListView(_view);
|
|
||||||
}
|
|
||||||
|
|
||||||
final List<int> _change;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
@HiveField(1)
|
|
||||||
List<int> get change {
|
|
||||||
if (_change is EqualUnmodifiableListView) return _change;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableListView(_change);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'Permissions(view: $view, change: $change)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$_Permissions &&
|
|
||||||
const DeepCollectionEquality().equals(other._view, _view) &&
|
|
||||||
const DeepCollectionEquality().equals(other._change, _change));
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(
|
|
||||||
runtimeType,
|
|
||||||
const DeepCollectionEquality().hash(_view),
|
|
||||||
const DeepCollectionEquality().hash(_change));
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$_PermissionsCopyWith<_$_Permissions> get copyWith =>
|
|
||||||
__$$_PermissionsCopyWithImpl<_$_Permissions>(this, _$identity);
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
return _$$_PermissionsToJson(
|
|
||||||
this,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class _Permissions implements Permissions {
|
|
||||||
const factory _Permissions(
|
|
||||||
{@HiveField(0) final List<int> view,
|
|
||||||
@HiveField(1) final List<int> change}) = _$_Permissions;
|
|
||||||
|
|
||||||
factory _Permissions.fromJson(Map<String, dynamic> json) =
|
|
||||||
_$_Permissions.fromJson;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@HiveField(0)
|
|
||||||
List<int> get view;
|
|
||||||
@override
|
|
||||||
@HiveField(1)
|
|
||||||
List<int> get change;
|
|
||||||
@override
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$_PermissionsCopyWith<_$_Permissions> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
@@ -1,686 +0,0 @@
|
|||||||
// 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 'id_query_parameter.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#custom-getters-and-methods');
|
|
||||||
|
|
||||||
IdQueryParameter _$IdQueryParameterFromJson(Map<String, dynamic> json) {
|
|
||||||
switch (json['runtimeType']) {
|
|
||||||
case 'unset':
|
|
||||||
return UnsetIdQueryParameter.fromJson(json);
|
|
||||||
case 'notAssigned':
|
|
||||||
return NotAssignedIdQueryParameter.fromJson(json);
|
|
||||||
case 'anyAssigned':
|
|
||||||
return AnyAssignedIdQueryParameter.fromJson(json);
|
|
||||||
case 'fromId':
|
|
||||||
return SetIdQueryParameter.fromJson(json);
|
|
||||||
|
|
||||||
default:
|
|
||||||
throw CheckedFromJsonException(json, 'runtimeType', 'IdQueryParameter',
|
|
||||||
'Invalid union type "${json['runtimeType']}"!');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
mixin _$IdQueryParameter {
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() unset,
|
|
||||||
required TResult Function() notAssigned,
|
|
||||||
required TResult Function() anyAssigned,
|
|
||||||
required TResult Function(@HiveField(0) int id) fromId,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? unset,
|
|
||||||
TResult? Function()? notAssigned,
|
|
||||||
TResult? Function()? anyAssigned,
|
|
||||||
TResult? Function(@HiveField(0) int id)? fromId,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? unset,
|
|
||||||
TResult Function()? notAssigned,
|
|
||||||
TResult Function()? anyAssigned,
|
|
||||||
TResult Function(@HiveField(0) int id)? fromId,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(UnsetIdQueryParameter value) unset,
|
|
||||||
required TResult Function(NotAssignedIdQueryParameter value) notAssigned,
|
|
||||||
required TResult Function(AnyAssignedIdQueryParameter value) anyAssigned,
|
|
||||||
required TResult Function(SetIdQueryParameter value) fromId,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(UnsetIdQueryParameter value)? unset,
|
|
||||||
TResult? Function(NotAssignedIdQueryParameter value)? notAssigned,
|
|
||||||
TResult? Function(AnyAssignedIdQueryParameter value)? anyAssigned,
|
|
||||||
TResult? Function(SetIdQueryParameter value)? fromId,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(UnsetIdQueryParameter value)? unset,
|
|
||||||
TResult Function(NotAssignedIdQueryParameter value)? notAssigned,
|
|
||||||
TResult Function(AnyAssignedIdQueryParameter value)? anyAssigned,
|
|
||||||
TResult Function(SetIdQueryParameter value)? fromId,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class $IdQueryParameterCopyWith<$Res> {
|
|
||||||
factory $IdQueryParameterCopyWith(
|
|
||||||
IdQueryParameter value, $Res Function(IdQueryParameter) then) =
|
|
||||||
_$IdQueryParameterCopyWithImpl<$Res, IdQueryParameter>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class _$IdQueryParameterCopyWithImpl<$Res, $Val extends IdQueryParameter>
|
|
||||||
implements $IdQueryParameterCopyWith<$Res> {
|
|
||||||
_$IdQueryParameterCopyWithImpl(this._value, this._then);
|
|
||||||
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Val _value;
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Res Function($Val) _then;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$UnsetIdQueryParameterCopyWith<$Res> {
|
|
||||||
factory _$$UnsetIdQueryParameterCopyWith(_$UnsetIdQueryParameter value,
|
|
||||||
$Res Function(_$UnsetIdQueryParameter) then) =
|
|
||||||
__$$UnsetIdQueryParameterCopyWithImpl<$Res>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$UnsetIdQueryParameterCopyWithImpl<$Res>
|
|
||||||
extends _$IdQueryParameterCopyWithImpl<$Res, _$UnsetIdQueryParameter>
|
|
||||||
implements _$$UnsetIdQueryParameterCopyWith<$Res> {
|
|
||||||
__$$UnsetIdQueryParameterCopyWithImpl(_$UnsetIdQueryParameter _value,
|
|
||||||
$Res Function(_$UnsetIdQueryParameter) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
@JsonSerializable()
|
|
||||||
@HiveType(typeId: PaperlessApiHiveTypeIds.unsetIdQueryParameter)
|
|
||||||
class _$UnsetIdQueryParameter extends UnsetIdQueryParameter {
|
|
||||||
const _$UnsetIdQueryParameter({final String? $type})
|
|
||||||
: $type = $type ?? 'unset',
|
|
||||||
super._();
|
|
||||||
|
|
||||||
factory _$UnsetIdQueryParameter.fromJson(Map<String, dynamic> json) =>
|
|
||||||
_$$UnsetIdQueryParameterFromJson(json);
|
|
||||||
|
|
||||||
@JsonKey(name: 'runtimeType')
|
|
||||||
final String $type;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'IdQueryParameter.unset()';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType && other is _$UnsetIdQueryParameter);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
int get hashCode => runtimeType.hashCode;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() unset,
|
|
||||||
required TResult Function() notAssigned,
|
|
||||||
required TResult Function() anyAssigned,
|
|
||||||
required TResult Function(@HiveField(0) int id) fromId,
|
|
||||||
}) {
|
|
||||||
return unset();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? unset,
|
|
||||||
TResult? Function()? notAssigned,
|
|
||||||
TResult? Function()? anyAssigned,
|
|
||||||
TResult? Function(@HiveField(0) int id)? fromId,
|
|
||||||
}) {
|
|
||||||
return unset?.call();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? unset,
|
|
||||||
TResult Function()? notAssigned,
|
|
||||||
TResult Function()? anyAssigned,
|
|
||||||
TResult Function(@HiveField(0) int id)? fromId,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (unset != null) {
|
|
||||||
return unset();
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(UnsetIdQueryParameter value) unset,
|
|
||||||
required TResult Function(NotAssignedIdQueryParameter value) notAssigned,
|
|
||||||
required TResult Function(AnyAssignedIdQueryParameter value) anyAssigned,
|
|
||||||
required TResult Function(SetIdQueryParameter value) fromId,
|
|
||||||
}) {
|
|
||||||
return unset(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(UnsetIdQueryParameter value)? unset,
|
|
||||||
TResult? Function(NotAssignedIdQueryParameter value)? notAssigned,
|
|
||||||
TResult? Function(AnyAssignedIdQueryParameter value)? anyAssigned,
|
|
||||||
TResult? Function(SetIdQueryParameter value)? fromId,
|
|
||||||
}) {
|
|
||||||
return unset?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(UnsetIdQueryParameter value)? unset,
|
|
||||||
TResult Function(NotAssignedIdQueryParameter value)? notAssigned,
|
|
||||||
TResult Function(AnyAssignedIdQueryParameter value)? anyAssigned,
|
|
||||||
TResult Function(SetIdQueryParameter value)? fromId,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (unset != null) {
|
|
||||||
return unset(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
return _$$UnsetIdQueryParameterToJson(
|
|
||||||
this,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class UnsetIdQueryParameter extends IdQueryParameter {
|
|
||||||
const factory UnsetIdQueryParameter() = _$UnsetIdQueryParameter;
|
|
||||||
const UnsetIdQueryParameter._() : super._();
|
|
||||||
|
|
||||||
factory UnsetIdQueryParameter.fromJson(Map<String, dynamic> json) =
|
|
||||||
_$UnsetIdQueryParameter.fromJson;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$NotAssignedIdQueryParameterCopyWith<$Res> {
|
|
||||||
factory _$$NotAssignedIdQueryParameterCopyWith(
|
|
||||||
_$NotAssignedIdQueryParameter value,
|
|
||||||
$Res Function(_$NotAssignedIdQueryParameter) then) =
|
|
||||||
__$$NotAssignedIdQueryParameterCopyWithImpl<$Res>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$NotAssignedIdQueryParameterCopyWithImpl<$Res>
|
|
||||||
extends _$IdQueryParameterCopyWithImpl<$Res, _$NotAssignedIdQueryParameter>
|
|
||||||
implements _$$NotAssignedIdQueryParameterCopyWith<$Res> {
|
|
||||||
__$$NotAssignedIdQueryParameterCopyWithImpl(
|
|
||||||
_$NotAssignedIdQueryParameter _value,
|
|
||||||
$Res Function(_$NotAssignedIdQueryParameter) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
@JsonSerializable()
|
|
||||||
@HiveType(typeId: PaperlessApiHiveTypeIds.notAssignedIdQueryParameter)
|
|
||||||
class _$NotAssignedIdQueryParameter extends NotAssignedIdQueryParameter {
|
|
||||||
const _$NotAssignedIdQueryParameter({final String? $type})
|
|
||||||
: $type = $type ?? 'notAssigned',
|
|
||||||
super._();
|
|
||||||
|
|
||||||
factory _$NotAssignedIdQueryParameter.fromJson(Map<String, dynamic> json) =>
|
|
||||||
_$$NotAssignedIdQueryParameterFromJson(json);
|
|
||||||
|
|
||||||
@JsonKey(name: 'runtimeType')
|
|
||||||
final String $type;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'IdQueryParameter.notAssigned()';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$NotAssignedIdQueryParameter);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
int get hashCode => runtimeType.hashCode;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() unset,
|
|
||||||
required TResult Function() notAssigned,
|
|
||||||
required TResult Function() anyAssigned,
|
|
||||||
required TResult Function(@HiveField(0) int id) fromId,
|
|
||||||
}) {
|
|
||||||
return notAssigned();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? unset,
|
|
||||||
TResult? Function()? notAssigned,
|
|
||||||
TResult? Function()? anyAssigned,
|
|
||||||
TResult? Function(@HiveField(0) int id)? fromId,
|
|
||||||
}) {
|
|
||||||
return notAssigned?.call();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? unset,
|
|
||||||
TResult Function()? notAssigned,
|
|
||||||
TResult Function()? anyAssigned,
|
|
||||||
TResult Function(@HiveField(0) int id)? fromId,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (notAssigned != null) {
|
|
||||||
return notAssigned();
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(UnsetIdQueryParameter value) unset,
|
|
||||||
required TResult Function(NotAssignedIdQueryParameter value) notAssigned,
|
|
||||||
required TResult Function(AnyAssignedIdQueryParameter value) anyAssigned,
|
|
||||||
required TResult Function(SetIdQueryParameter value) fromId,
|
|
||||||
}) {
|
|
||||||
return notAssigned(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(UnsetIdQueryParameter value)? unset,
|
|
||||||
TResult? Function(NotAssignedIdQueryParameter value)? notAssigned,
|
|
||||||
TResult? Function(AnyAssignedIdQueryParameter value)? anyAssigned,
|
|
||||||
TResult? Function(SetIdQueryParameter value)? fromId,
|
|
||||||
}) {
|
|
||||||
return notAssigned?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(UnsetIdQueryParameter value)? unset,
|
|
||||||
TResult Function(NotAssignedIdQueryParameter value)? notAssigned,
|
|
||||||
TResult Function(AnyAssignedIdQueryParameter value)? anyAssigned,
|
|
||||||
TResult Function(SetIdQueryParameter value)? fromId,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (notAssigned != null) {
|
|
||||||
return notAssigned(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
return _$$NotAssignedIdQueryParameterToJson(
|
|
||||||
this,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class NotAssignedIdQueryParameter extends IdQueryParameter {
|
|
||||||
const factory NotAssignedIdQueryParameter() = _$NotAssignedIdQueryParameter;
|
|
||||||
const NotAssignedIdQueryParameter._() : super._();
|
|
||||||
|
|
||||||
factory NotAssignedIdQueryParameter.fromJson(Map<String, dynamic> json) =
|
|
||||||
_$NotAssignedIdQueryParameter.fromJson;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$AnyAssignedIdQueryParameterCopyWith<$Res> {
|
|
||||||
factory _$$AnyAssignedIdQueryParameterCopyWith(
|
|
||||||
_$AnyAssignedIdQueryParameter value,
|
|
||||||
$Res Function(_$AnyAssignedIdQueryParameter) then) =
|
|
||||||
__$$AnyAssignedIdQueryParameterCopyWithImpl<$Res>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$AnyAssignedIdQueryParameterCopyWithImpl<$Res>
|
|
||||||
extends _$IdQueryParameterCopyWithImpl<$Res, _$AnyAssignedIdQueryParameter>
|
|
||||||
implements _$$AnyAssignedIdQueryParameterCopyWith<$Res> {
|
|
||||||
__$$AnyAssignedIdQueryParameterCopyWithImpl(
|
|
||||||
_$AnyAssignedIdQueryParameter _value,
|
|
||||||
$Res Function(_$AnyAssignedIdQueryParameter) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
@JsonSerializable()
|
|
||||||
@HiveType(typeId: PaperlessApiHiveTypeIds.anyAssignedIdQueryParameter)
|
|
||||||
class _$AnyAssignedIdQueryParameter extends AnyAssignedIdQueryParameter {
|
|
||||||
const _$AnyAssignedIdQueryParameter({final String? $type})
|
|
||||||
: $type = $type ?? 'anyAssigned',
|
|
||||||
super._();
|
|
||||||
|
|
||||||
factory _$AnyAssignedIdQueryParameter.fromJson(Map<String, dynamic> json) =>
|
|
||||||
_$$AnyAssignedIdQueryParameterFromJson(json);
|
|
||||||
|
|
||||||
@JsonKey(name: 'runtimeType')
|
|
||||||
final String $type;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'IdQueryParameter.anyAssigned()';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$AnyAssignedIdQueryParameter);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
int get hashCode => runtimeType.hashCode;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() unset,
|
|
||||||
required TResult Function() notAssigned,
|
|
||||||
required TResult Function() anyAssigned,
|
|
||||||
required TResult Function(@HiveField(0) int id) fromId,
|
|
||||||
}) {
|
|
||||||
return anyAssigned();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? unset,
|
|
||||||
TResult? Function()? notAssigned,
|
|
||||||
TResult? Function()? anyAssigned,
|
|
||||||
TResult? Function(@HiveField(0) int id)? fromId,
|
|
||||||
}) {
|
|
||||||
return anyAssigned?.call();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? unset,
|
|
||||||
TResult Function()? notAssigned,
|
|
||||||
TResult Function()? anyAssigned,
|
|
||||||
TResult Function(@HiveField(0) int id)? fromId,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (anyAssigned != null) {
|
|
||||||
return anyAssigned();
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(UnsetIdQueryParameter value) unset,
|
|
||||||
required TResult Function(NotAssignedIdQueryParameter value) notAssigned,
|
|
||||||
required TResult Function(AnyAssignedIdQueryParameter value) anyAssigned,
|
|
||||||
required TResult Function(SetIdQueryParameter value) fromId,
|
|
||||||
}) {
|
|
||||||
return anyAssigned(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(UnsetIdQueryParameter value)? unset,
|
|
||||||
TResult? Function(NotAssignedIdQueryParameter value)? notAssigned,
|
|
||||||
TResult? Function(AnyAssignedIdQueryParameter value)? anyAssigned,
|
|
||||||
TResult? Function(SetIdQueryParameter value)? fromId,
|
|
||||||
}) {
|
|
||||||
return anyAssigned?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(UnsetIdQueryParameter value)? unset,
|
|
||||||
TResult Function(NotAssignedIdQueryParameter value)? notAssigned,
|
|
||||||
TResult Function(AnyAssignedIdQueryParameter value)? anyAssigned,
|
|
||||||
TResult Function(SetIdQueryParameter value)? fromId,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (anyAssigned != null) {
|
|
||||||
return anyAssigned(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
return _$$AnyAssignedIdQueryParameterToJson(
|
|
||||||
this,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class AnyAssignedIdQueryParameter extends IdQueryParameter {
|
|
||||||
const factory AnyAssignedIdQueryParameter() = _$AnyAssignedIdQueryParameter;
|
|
||||||
const AnyAssignedIdQueryParameter._() : super._();
|
|
||||||
|
|
||||||
factory AnyAssignedIdQueryParameter.fromJson(Map<String, dynamic> json) =
|
|
||||||
_$AnyAssignedIdQueryParameter.fromJson;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$SetIdQueryParameterCopyWith<$Res> {
|
|
||||||
factory _$$SetIdQueryParameterCopyWith(_$SetIdQueryParameter value,
|
|
||||||
$Res Function(_$SetIdQueryParameter) then) =
|
|
||||||
__$$SetIdQueryParameterCopyWithImpl<$Res>;
|
|
||||||
@useResult
|
|
||||||
$Res call({@HiveField(0) int id});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$SetIdQueryParameterCopyWithImpl<$Res>
|
|
||||||
extends _$IdQueryParameterCopyWithImpl<$Res, _$SetIdQueryParameter>
|
|
||||||
implements _$$SetIdQueryParameterCopyWith<$Res> {
|
|
||||||
__$$SetIdQueryParameterCopyWithImpl(
|
|
||||||
_$SetIdQueryParameter _value, $Res Function(_$SetIdQueryParameter) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? id = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$SetIdQueryParameter(
|
|
||||||
null == id
|
|
||||||
? _value.id
|
|
||||||
: id // ignore: cast_nullable_to_non_nullable
|
|
||||||
as int,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
@JsonSerializable()
|
|
||||||
@HiveType(typeId: PaperlessApiHiveTypeIds.setIdQueryParameter)
|
|
||||||
class _$SetIdQueryParameter extends SetIdQueryParameter {
|
|
||||||
const _$SetIdQueryParameter(@HiveField(0) this.id, {final String? $type})
|
|
||||||
: $type = $type ?? 'fromId',
|
|
||||||
super._();
|
|
||||||
|
|
||||||
factory _$SetIdQueryParameter.fromJson(Map<String, dynamic> json) =>
|
|
||||||
_$$SetIdQueryParameterFromJson(json);
|
|
||||||
|
|
||||||
@override
|
|
||||||
@HiveField(0)
|
|
||||||
final int id;
|
|
||||||
|
|
||||||
@JsonKey(name: 'runtimeType')
|
|
||||||
final String $type;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'IdQueryParameter.fromId(id: $id)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$SetIdQueryParameter &&
|
|
||||||
(identical(other.id, id) || other.id == id));
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(runtimeType, id);
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$SetIdQueryParameterCopyWith<_$SetIdQueryParameter> get copyWith =>
|
|
||||||
__$$SetIdQueryParameterCopyWithImpl<_$SetIdQueryParameter>(
|
|
||||||
this, _$identity);
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() unset,
|
|
||||||
required TResult Function() notAssigned,
|
|
||||||
required TResult Function() anyAssigned,
|
|
||||||
required TResult Function(@HiveField(0) int id) fromId,
|
|
||||||
}) {
|
|
||||||
return fromId(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? unset,
|
|
||||||
TResult? Function()? notAssigned,
|
|
||||||
TResult? Function()? anyAssigned,
|
|
||||||
TResult? Function(@HiveField(0) int id)? fromId,
|
|
||||||
}) {
|
|
||||||
return fromId?.call(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? unset,
|
|
||||||
TResult Function()? notAssigned,
|
|
||||||
TResult Function()? anyAssigned,
|
|
||||||
TResult Function(@HiveField(0) int id)? fromId,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (fromId != null) {
|
|
||||||
return fromId(id);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(UnsetIdQueryParameter value) unset,
|
|
||||||
required TResult Function(NotAssignedIdQueryParameter value) notAssigned,
|
|
||||||
required TResult Function(AnyAssignedIdQueryParameter value) anyAssigned,
|
|
||||||
required TResult Function(SetIdQueryParameter value) fromId,
|
|
||||||
}) {
|
|
||||||
return fromId(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(UnsetIdQueryParameter value)? unset,
|
|
||||||
TResult? Function(NotAssignedIdQueryParameter value)? notAssigned,
|
|
||||||
TResult? Function(AnyAssignedIdQueryParameter value)? anyAssigned,
|
|
||||||
TResult? Function(SetIdQueryParameter value)? fromId,
|
|
||||||
}) {
|
|
||||||
return fromId?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(UnsetIdQueryParameter value)? unset,
|
|
||||||
TResult Function(NotAssignedIdQueryParameter value)? notAssigned,
|
|
||||||
TResult Function(AnyAssignedIdQueryParameter value)? anyAssigned,
|
|
||||||
TResult Function(SetIdQueryParameter value)? fromId,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (fromId != null) {
|
|
||||||
return fromId(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
return _$$SetIdQueryParameterToJson(
|
|
||||||
this,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class SetIdQueryParameter extends IdQueryParameter {
|
|
||||||
const factory SetIdQueryParameter(@HiveField(0) final int id) =
|
|
||||||
_$SetIdQueryParameter;
|
|
||||||
const SetIdQueryParameter._() : super._();
|
|
||||||
|
|
||||||
factory SetIdQueryParameter.fromJson(Map<String, dynamic> json) =
|
|
||||||
_$SetIdQueryParameter.fromJson;
|
|
||||||
|
|
||||||
@HiveField(0)
|
|
||||||
int get id;
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$SetIdQueryParameterCopyWith<_$SetIdQueryParameter> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
@@ -1,587 +0,0 @@
|
|||||||
// 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 'tags_query.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#custom-getters-and-methods');
|
|
||||||
|
|
||||||
TagsQuery _$TagsQueryFromJson(Map<String, dynamic> json) {
|
|
||||||
switch (json['runtimeType']) {
|
|
||||||
case 'notAssigned':
|
|
||||||
return NotAssignedTagsQuery.fromJson(json);
|
|
||||||
case 'anyAssigned':
|
|
||||||
return AnyAssignedTagsQuery.fromJson(json);
|
|
||||||
case 'ids':
|
|
||||||
return IdsTagsQuery.fromJson(json);
|
|
||||||
|
|
||||||
default:
|
|
||||||
throw CheckedFromJsonException(json, 'runtimeType', 'TagsQuery',
|
|
||||||
'Invalid union type "${json['runtimeType']}"!');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
mixin _$TagsQuery {
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() notAssigned,
|
|
||||||
required TResult Function(List<int> tagIds) anyAssigned,
|
|
||||||
required TResult Function(List<int> include, List<int> exclude) ids,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? notAssigned,
|
|
||||||
TResult? Function(List<int> tagIds)? anyAssigned,
|
|
||||||
TResult? Function(List<int> include, List<int> exclude)? ids,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? notAssigned,
|
|
||||||
TResult Function(List<int> tagIds)? anyAssigned,
|
|
||||||
TResult Function(List<int> include, List<int> exclude)? ids,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(NotAssignedTagsQuery value) notAssigned,
|
|
||||||
required TResult Function(AnyAssignedTagsQuery value) anyAssigned,
|
|
||||||
required TResult Function(IdsTagsQuery value) ids,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(NotAssignedTagsQuery value)? notAssigned,
|
|
||||||
TResult? Function(AnyAssignedTagsQuery value)? anyAssigned,
|
|
||||||
TResult? Function(IdsTagsQuery value)? ids,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(NotAssignedTagsQuery value)? notAssigned,
|
|
||||||
TResult Function(AnyAssignedTagsQuery value)? anyAssigned,
|
|
||||||
TResult Function(IdsTagsQuery value)? ids,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class $TagsQueryCopyWith<$Res> {
|
|
||||||
factory $TagsQueryCopyWith(TagsQuery value, $Res Function(TagsQuery) then) =
|
|
||||||
_$TagsQueryCopyWithImpl<$Res, TagsQuery>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class _$TagsQueryCopyWithImpl<$Res, $Val extends TagsQuery>
|
|
||||||
implements $TagsQueryCopyWith<$Res> {
|
|
||||||
_$TagsQueryCopyWithImpl(this._value, this._then);
|
|
||||||
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Val _value;
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Res Function($Val) _then;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$NotAssignedTagsQueryCopyWith<$Res> {
|
|
||||||
factory _$$NotAssignedTagsQueryCopyWith(_$NotAssignedTagsQuery value,
|
|
||||||
$Res Function(_$NotAssignedTagsQuery) then) =
|
|
||||||
__$$NotAssignedTagsQueryCopyWithImpl<$Res>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$NotAssignedTagsQueryCopyWithImpl<$Res>
|
|
||||||
extends _$TagsQueryCopyWithImpl<$Res, _$NotAssignedTagsQuery>
|
|
||||||
implements _$$NotAssignedTagsQueryCopyWith<$Res> {
|
|
||||||
__$$NotAssignedTagsQueryCopyWithImpl(_$NotAssignedTagsQuery _value,
|
|
||||||
$Res Function(_$NotAssignedTagsQuery) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
@JsonSerializable()
|
|
||||||
@HiveType(typeId: PaperlessApiHiveTypeIds.notAssignedTagsQuery)
|
|
||||||
class _$NotAssignedTagsQuery extends NotAssignedTagsQuery {
|
|
||||||
const _$NotAssignedTagsQuery({final String? $type})
|
|
||||||
: $type = $type ?? 'notAssigned',
|
|
||||||
super._();
|
|
||||||
|
|
||||||
factory _$NotAssignedTagsQuery.fromJson(Map<String, dynamic> json) =>
|
|
||||||
_$$NotAssignedTagsQueryFromJson(json);
|
|
||||||
|
|
||||||
@JsonKey(name: 'runtimeType')
|
|
||||||
final String $type;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'TagsQuery.notAssigned()';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType && other is _$NotAssignedTagsQuery);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
int get hashCode => runtimeType.hashCode;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() notAssigned,
|
|
||||||
required TResult Function(List<int> tagIds) anyAssigned,
|
|
||||||
required TResult Function(List<int> include, List<int> exclude) ids,
|
|
||||||
}) {
|
|
||||||
return notAssigned();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? notAssigned,
|
|
||||||
TResult? Function(List<int> tagIds)? anyAssigned,
|
|
||||||
TResult? Function(List<int> include, List<int> exclude)? ids,
|
|
||||||
}) {
|
|
||||||
return notAssigned?.call();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? notAssigned,
|
|
||||||
TResult Function(List<int> tagIds)? anyAssigned,
|
|
||||||
TResult Function(List<int> include, List<int> exclude)? ids,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (notAssigned != null) {
|
|
||||||
return notAssigned();
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(NotAssignedTagsQuery value) notAssigned,
|
|
||||||
required TResult Function(AnyAssignedTagsQuery value) anyAssigned,
|
|
||||||
required TResult Function(IdsTagsQuery value) ids,
|
|
||||||
}) {
|
|
||||||
return notAssigned(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(NotAssignedTagsQuery value)? notAssigned,
|
|
||||||
TResult? Function(AnyAssignedTagsQuery value)? anyAssigned,
|
|
||||||
TResult? Function(IdsTagsQuery value)? ids,
|
|
||||||
}) {
|
|
||||||
return notAssigned?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(NotAssignedTagsQuery value)? notAssigned,
|
|
||||||
TResult Function(AnyAssignedTagsQuery value)? anyAssigned,
|
|
||||||
TResult Function(IdsTagsQuery value)? ids,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (notAssigned != null) {
|
|
||||||
return notAssigned(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
return _$$NotAssignedTagsQueryToJson(
|
|
||||||
this,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class NotAssignedTagsQuery extends TagsQuery {
|
|
||||||
const factory NotAssignedTagsQuery() = _$NotAssignedTagsQuery;
|
|
||||||
const NotAssignedTagsQuery._() : super._();
|
|
||||||
|
|
||||||
factory NotAssignedTagsQuery.fromJson(Map<String, dynamic> json) =
|
|
||||||
_$NotAssignedTagsQuery.fromJson;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$AnyAssignedTagsQueryCopyWith<$Res> {
|
|
||||||
factory _$$AnyAssignedTagsQueryCopyWith(_$AnyAssignedTagsQuery value,
|
|
||||||
$Res Function(_$AnyAssignedTagsQuery) then) =
|
|
||||||
__$$AnyAssignedTagsQueryCopyWithImpl<$Res>;
|
|
||||||
@useResult
|
|
||||||
$Res call({List<int> tagIds});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$AnyAssignedTagsQueryCopyWithImpl<$Res>
|
|
||||||
extends _$TagsQueryCopyWithImpl<$Res, _$AnyAssignedTagsQuery>
|
|
||||||
implements _$$AnyAssignedTagsQueryCopyWith<$Res> {
|
|
||||||
__$$AnyAssignedTagsQueryCopyWithImpl(_$AnyAssignedTagsQuery _value,
|
|
||||||
$Res Function(_$AnyAssignedTagsQuery) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? tagIds = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$AnyAssignedTagsQuery(
|
|
||||||
tagIds: null == tagIds
|
|
||||||
? _value._tagIds
|
|
||||||
: tagIds // ignore: cast_nullable_to_non_nullable
|
|
||||||
as List<int>,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
@JsonSerializable()
|
|
||||||
@HiveType(typeId: PaperlessApiHiveTypeIds.anyAssignedTagsQuery)
|
|
||||||
class _$AnyAssignedTagsQuery extends AnyAssignedTagsQuery {
|
|
||||||
const _$AnyAssignedTagsQuery(
|
|
||||||
{final List<int> tagIds = const [], final String? $type})
|
|
||||||
: _tagIds = tagIds,
|
|
||||||
$type = $type ?? 'anyAssigned',
|
|
||||||
super._();
|
|
||||||
|
|
||||||
factory _$AnyAssignedTagsQuery.fromJson(Map<String, dynamic> json) =>
|
|
||||||
_$$AnyAssignedTagsQueryFromJson(json);
|
|
||||||
|
|
||||||
final List<int> _tagIds;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
List<int> get tagIds {
|
|
||||||
if (_tagIds is EqualUnmodifiableListView) return _tagIds;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableListView(_tagIds);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(name: 'runtimeType')
|
|
||||||
final String $type;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'TagsQuery.anyAssigned(tagIds: $tagIds)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$AnyAssignedTagsQuery &&
|
|
||||||
const DeepCollectionEquality().equals(other._tagIds, _tagIds));
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
Object.hash(runtimeType, const DeepCollectionEquality().hash(_tagIds));
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$AnyAssignedTagsQueryCopyWith<_$AnyAssignedTagsQuery> get copyWith =>
|
|
||||||
__$$AnyAssignedTagsQueryCopyWithImpl<_$AnyAssignedTagsQuery>(
|
|
||||||
this, _$identity);
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() notAssigned,
|
|
||||||
required TResult Function(List<int> tagIds) anyAssigned,
|
|
||||||
required TResult Function(List<int> include, List<int> exclude) ids,
|
|
||||||
}) {
|
|
||||||
return anyAssigned(tagIds);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? notAssigned,
|
|
||||||
TResult? Function(List<int> tagIds)? anyAssigned,
|
|
||||||
TResult? Function(List<int> include, List<int> exclude)? ids,
|
|
||||||
}) {
|
|
||||||
return anyAssigned?.call(tagIds);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? notAssigned,
|
|
||||||
TResult Function(List<int> tagIds)? anyAssigned,
|
|
||||||
TResult Function(List<int> include, List<int> exclude)? ids,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (anyAssigned != null) {
|
|
||||||
return anyAssigned(tagIds);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(NotAssignedTagsQuery value) notAssigned,
|
|
||||||
required TResult Function(AnyAssignedTagsQuery value) anyAssigned,
|
|
||||||
required TResult Function(IdsTagsQuery value) ids,
|
|
||||||
}) {
|
|
||||||
return anyAssigned(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(NotAssignedTagsQuery value)? notAssigned,
|
|
||||||
TResult? Function(AnyAssignedTagsQuery value)? anyAssigned,
|
|
||||||
TResult? Function(IdsTagsQuery value)? ids,
|
|
||||||
}) {
|
|
||||||
return anyAssigned?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(NotAssignedTagsQuery value)? notAssigned,
|
|
||||||
TResult Function(AnyAssignedTagsQuery value)? anyAssigned,
|
|
||||||
TResult Function(IdsTagsQuery value)? ids,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (anyAssigned != null) {
|
|
||||||
return anyAssigned(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
return _$$AnyAssignedTagsQueryToJson(
|
|
||||||
this,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class AnyAssignedTagsQuery extends TagsQuery {
|
|
||||||
const factory AnyAssignedTagsQuery({final List<int> tagIds}) =
|
|
||||||
_$AnyAssignedTagsQuery;
|
|
||||||
const AnyAssignedTagsQuery._() : super._();
|
|
||||||
|
|
||||||
factory AnyAssignedTagsQuery.fromJson(Map<String, dynamic> json) =
|
|
||||||
_$AnyAssignedTagsQuery.fromJson;
|
|
||||||
|
|
||||||
List<int> get tagIds;
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$AnyAssignedTagsQueryCopyWith<_$AnyAssignedTagsQuery> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$IdsTagsQueryCopyWith<$Res> {
|
|
||||||
factory _$$IdsTagsQueryCopyWith(
|
|
||||||
_$IdsTagsQuery value, $Res Function(_$IdsTagsQuery) then) =
|
|
||||||
__$$IdsTagsQueryCopyWithImpl<$Res>;
|
|
||||||
@useResult
|
|
||||||
$Res call({List<int> include, List<int> exclude});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$IdsTagsQueryCopyWithImpl<$Res>
|
|
||||||
extends _$TagsQueryCopyWithImpl<$Res, _$IdsTagsQuery>
|
|
||||||
implements _$$IdsTagsQueryCopyWith<$Res> {
|
|
||||||
__$$IdsTagsQueryCopyWithImpl(
|
|
||||||
_$IdsTagsQuery _value, $Res Function(_$IdsTagsQuery) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? include = null,
|
|
||||||
Object? exclude = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$IdsTagsQuery(
|
|
||||||
include: null == include
|
|
||||||
? _value._include
|
|
||||||
: include // ignore: cast_nullable_to_non_nullable
|
|
||||||
as List<int>,
|
|
||||||
exclude: null == exclude
|
|
||||||
? _value._exclude
|
|
||||||
: exclude // ignore: cast_nullable_to_non_nullable
|
|
||||||
as List<int>,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
@JsonSerializable()
|
|
||||||
@HiveType(typeId: PaperlessApiHiveTypeIds.idsTagsQuery)
|
|
||||||
class _$IdsTagsQuery extends IdsTagsQuery {
|
|
||||||
const _$IdsTagsQuery(
|
|
||||||
{final List<int> include = const [],
|
|
||||||
final List<int> exclude = const [],
|
|
||||||
final String? $type})
|
|
||||||
: _include = include,
|
|
||||||
_exclude = exclude,
|
|
||||||
$type = $type ?? 'ids',
|
|
||||||
super._();
|
|
||||||
|
|
||||||
factory _$IdsTagsQuery.fromJson(Map<String, dynamic> json) =>
|
|
||||||
_$$IdsTagsQueryFromJson(json);
|
|
||||||
|
|
||||||
final List<int> _include;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
List<int> get include {
|
|
||||||
if (_include is EqualUnmodifiableListView) return _include;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableListView(_include);
|
|
||||||
}
|
|
||||||
|
|
||||||
final List<int> _exclude;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
List<int> get exclude {
|
|
||||||
if (_exclude is EqualUnmodifiableListView) return _exclude;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableListView(_exclude);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(name: 'runtimeType')
|
|
||||||
final String $type;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'TagsQuery.ids(include: $include, exclude: $exclude)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$IdsTagsQuery &&
|
|
||||||
const DeepCollectionEquality().equals(other._include, _include) &&
|
|
||||||
const DeepCollectionEquality().equals(other._exclude, _exclude));
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(
|
|
||||||
runtimeType,
|
|
||||||
const DeepCollectionEquality().hash(_include),
|
|
||||||
const DeepCollectionEquality().hash(_exclude));
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$IdsTagsQueryCopyWith<_$IdsTagsQuery> get copyWith =>
|
|
||||||
__$$IdsTagsQueryCopyWithImpl<_$IdsTagsQuery>(this, _$identity);
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() notAssigned,
|
|
||||||
required TResult Function(List<int> tagIds) anyAssigned,
|
|
||||||
required TResult Function(List<int> include, List<int> exclude) ids,
|
|
||||||
}) {
|
|
||||||
return ids(include, exclude);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? notAssigned,
|
|
||||||
TResult? Function(List<int> tagIds)? anyAssigned,
|
|
||||||
TResult? Function(List<int> include, List<int> exclude)? ids,
|
|
||||||
}) {
|
|
||||||
return ids?.call(include, exclude);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? notAssigned,
|
|
||||||
TResult Function(List<int> tagIds)? anyAssigned,
|
|
||||||
TResult Function(List<int> include, List<int> exclude)? ids,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (ids != null) {
|
|
||||||
return ids(include, exclude);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(NotAssignedTagsQuery value) notAssigned,
|
|
||||||
required TResult Function(AnyAssignedTagsQuery value) anyAssigned,
|
|
||||||
required TResult Function(IdsTagsQuery value) ids,
|
|
||||||
}) {
|
|
||||||
return ids(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(NotAssignedTagsQuery value)? notAssigned,
|
|
||||||
TResult? Function(AnyAssignedTagsQuery value)? anyAssigned,
|
|
||||||
TResult? Function(IdsTagsQuery value)? ids,
|
|
||||||
}) {
|
|
||||||
return ids?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(NotAssignedTagsQuery value)? notAssigned,
|
|
||||||
TResult Function(AnyAssignedTagsQuery value)? anyAssigned,
|
|
||||||
TResult Function(IdsTagsQuery value)? ids,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (ids != null) {
|
|
||||||
return ids(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
return _$$IdsTagsQueryToJson(
|
|
||||||
this,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class IdsTagsQuery extends TagsQuery {
|
|
||||||
const factory IdsTagsQuery(
|
|
||||||
{final List<int> include, final List<int> exclude}) = _$IdsTagsQuery;
|
|
||||||
const IdsTagsQuery._() : super._();
|
|
||||||
|
|
||||||
factory IdsTagsQuery.fromJson(Map<String, dynamic> json) =
|
|
||||||
_$IdsTagsQuery.fromJson;
|
|
||||||
|
|
||||||
List<int> get include;
|
|
||||||
List<int> get exclude;
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$IdsTagsQueryCopyWith<_$IdsTagsQuery> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
@@ -1,844 +0,0 @@
|
|||||||
// 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 'user_model.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#custom-getters-and-methods');
|
|
||||||
|
|
||||||
UserModel _$UserModelFromJson(Map<String, dynamic> json) {
|
|
||||||
switch (json['runtimeType']) {
|
|
||||||
case 'v3':
|
|
||||||
return UserModelV3.fromJson(json);
|
|
||||||
case 'v2':
|
|
||||||
return UserModelV2.fromJson(json);
|
|
||||||
|
|
||||||
default:
|
|
||||||
throw CheckedFromJsonException(json, 'runtimeType', 'UserModel',
|
|
||||||
'Invalid union type "${json['runtimeType']}"!');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
mixin _$UserModel {
|
|
||||||
@HiveField(0)
|
|
||||||
int get id => throw _privateConstructorUsedError;
|
|
||||||
@HiveField(1)
|
|
||||||
String get username => throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function(
|
|
||||||
@HiveField(0) int id,
|
|
||||||
@HiveField(1) String username,
|
|
||||||
@HiveField(2) String email,
|
|
||||||
@HiveField(3) String? firstName,
|
|
||||||
@HiveField(4) String? lastName,
|
|
||||||
@HiveField(5) DateTime? dateJoined,
|
|
||||||
@HiveField(6) bool isStaff,
|
|
||||||
@HiveField(7) bool isActive,
|
|
||||||
@HiveField(8) bool isSuperuser,
|
|
||||||
@HiveField(9) List<int> groups,
|
|
||||||
@HiveField(10) List<String> userPermissions,
|
|
||||||
@HiveField(11) List<InheritedPermissions> inheritedPermissions)
|
|
||||||
v3,
|
|
||||||
required TResult Function(@HiveField(0) @JsonKey(name: "user_id") int id,
|
|
||||||
@HiveField(1) String username, @HiveField(2) String? displayName)
|
|
||||||
v2,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(
|
|
||||||
@HiveField(0) int id,
|
|
||||||
@HiveField(1) String username,
|
|
||||||
@HiveField(2) String email,
|
|
||||||
@HiveField(3) String? firstName,
|
|
||||||
@HiveField(4) String? lastName,
|
|
||||||
@HiveField(5) DateTime? dateJoined,
|
|
||||||
@HiveField(6) bool isStaff,
|
|
||||||
@HiveField(7) bool isActive,
|
|
||||||
@HiveField(8) bool isSuperuser,
|
|
||||||
@HiveField(9) List<int> groups,
|
|
||||||
@HiveField(10) List<String> userPermissions,
|
|
||||||
@HiveField(11) List<InheritedPermissions> inheritedPermissions)?
|
|
||||||
v3,
|
|
||||||
TResult? Function(@HiveField(0) @JsonKey(name: "user_id") int id,
|
|
||||||
@HiveField(1) String username, @HiveField(2) String? displayName)?
|
|
||||||
v2,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function(
|
|
||||||
@HiveField(0) int id,
|
|
||||||
@HiveField(1) String username,
|
|
||||||
@HiveField(2) String email,
|
|
||||||
@HiveField(3) String? firstName,
|
|
||||||
@HiveField(4) String? lastName,
|
|
||||||
@HiveField(5) DateTime? dateJoined,
|
|
||||||
@HiveField(6) bool isStaff,
|
|
||||||
@HiveField(7) bool isActive,
|
|
||||||
@HiveField(8) bool isSuperuser,
|
|
||||||
@HiveField(9) List<int> groups,
|
|
||||||
@HiveField(10) List<String> userPermissions,
|
|
||||||
@HiveField(11) List<InheritedPermissions> inheritedPermissions)?
|
|
||||||
v3,
|
|
||||||
TResult Function(@HiveField(0) @JsonKey(name: "user_id") int id,
|
|
||||||
@HiveField(1) String username, @HiveField(2) String? displayName)?
|
|
||||||
v2,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(UserModelV3 value) v3,
|
|
||||||
required TResult Function(UserModelV2 value) v2,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(UserModelV3 value)? v3,
|
|
||||||
TResult? Function(UserModelV2 value)? v2,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(UserModelV3 value)? v3,
|
|
||||||
TResult Function(UserModelV2 value)? v2,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
$UserModelCopyWith<UserModel> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class $UserModelCopyWith<$Res> {
|
|
||||||
factory $UserModelCopyWith(UserModel value, $Res Function(UserModel) then) =
|
|
||||||
_$UserModelCopyWithImpl<$Res, UserModel>;
|
|
||||||
@useResult
|
|
||||||
$Res call({@HiveField(0) int id, @HiveField(1) String username});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class _$UserModelCopyWithImpl<$Res, $Val extends UserModel>
|
|
||||||
implements $UserModelCopyWith<$Res> {
|
|
||||||
_$UserModelCopyWithImpl(this._value, this._then);
|
|
||||||
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Val _value;
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Res Function($Val) _then;
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? id = null,
|
|
||||||
Object? username = null,
|
|
||||||
}) {
|
|
||||||
return _then(_value.copyWith(
|
|
||||||
id: null == id
|
|
||||||
? _value.id
|
|
||||||
: id // ignore: cast_nullable_to_non_nullable
|
|
||||||
as int,
|
|
||||||
username: null == username
|
|
||||||
? _value.username
|
|
||||||
: username // ignore: cast_nullable_to_non_nullable
|
|
||||||
as String,
|
|
||||||
) as $Val);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$UserModelV3CopyWith<$Res>
|
|
||||||
implements $UserModelCopyWith<$Res> {
|
|
||||||
factory _$$UserModelV3CopyWith(
|
|
||||||
_$UserModelV3 value, $Res Function(_$UserModelV3) then) =
|
|
||||||
__$$UserModelV3CopyWithImpl<$Res>;
|
|
||||||
@override
|
|
||||||
@useResult
|
|
||||||
$Res call(
|
|
||||||
{@HiveField(0) int id,
|
|
||||||
@HiveField(1) String username,
|
|
||||||
@HiveField(2) String email,
|
|
||||||
@HiveField(3) String? firstName,
|
|
||||||
@HiveField(4) String? lastName,
|
|
||||||
@HiveField(5) DateTime? dateJoined,
|
|
||||||
@HiveField(6) bool isStaff,
|
|
||||||
@HiveField(7) bool isActive,
|
|
||||||
@HiveField(8) bool isSuperuser,
|
|
||||||
@HiveField(9) List<int> groups,
|
|
||||||
@HiveField(10) List<String> userPermissions,
|
|
||||||
@HiveField(11) List<InheritedPermissions> inheritedPermissions});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$UserModelV3CopyWithImpl<$Res>
|
|
||||||
extends _$UserModelCopyWithImpl<$Res, _$UserModelV3>
|
|
||||||
implements _$$UserModelV3CopyWith<$Res> {
|
|
||||||
__$$UserModelV3CopyWithImpl(
|
|
||||||
_$UserModelV3 _value, $Res Function(_$UserModelV3) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? id = null,
|
|
||||||
Object? username = null,
|
|
||||||
Object? email = null,
|
|
||||||
Object? firstName = freezed,
|
|
||||||
Object? lastName = freezed,
|
|
||||||
Object? dateJoined = freezed,
|
|
||||||
Object? isStaff = null,
|
|
||||||
Object? isActive = null,
|
|
||||||
Object? isSuperuser = null,
|
|
||||||
Object? groups = null,
|
|
||||||
Object? userPermissions = null,
|
|
||||||
Object? inheritedPermissions = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$UserModelV3(
|
|
||||||
id: null == id
|
|
||||||
? _value.id
|
|
||||||
: id // ignore: cast_nullable_to_non_nullable
|
|
||||||
as int,
|
|
||||||
username: null == username
|
|
||||||
? _value.username
|
|
||||||
: username // ignore: cast_nullable_to_non_nullable
|
|
||||||
as String,
|
|
||||||
email: null == email
|
|
||||||
? _value.email
|
|
||||||
: email // ignore: cast_nullable_to_non_nullable
|
|
||||||
as String,
|
|
||||||
firstName: freezed == firstName
|
|
||||||
? _value.firstName
|
|
||||||
: firstName // ignore: cast_nullable_to_non_nullable
|
|
||||||
as String?,
|
|
||||||
lastName: freezed == lastName
|
|
||||||
? _value.lastName
|
|
||||||
: lastName // ignore: cast_nullable_to_non_nullable
|
|
||||||
as String?,
|
|
||||||
dateJoined: freezed == dateJoined
|
|
||||||
? _value.dateJoined
|
|
||||||
: dateJoined // ignore: cast_nullable_to_non_nullable
|
|
||||||
as DateTime?,
|
|
||||||
isStaff: null == isStaff
|
|
||||||
? _value.isStaff
|
|
||||||
: isStaff // ignore: cast_nullable_to_non_nullable
|
|
||||||
as bool,
|
|
||||||
isActive: null == isActive
|
|
||||||
? _value.isActive
|
|
||||||
: isActive // ignore: cast_nullable_to_non_nullable
|
|
||||||
as bool,
|
|
||||||
isSuperuser: null == isSuperuser
|
|
||||||
? _value.isSuperuser
|
|
||||||
: isSuperuser // ignore: cast_nullable_to_non_nullable
|
|
||||||
as bool,
|
|
||||||
groups: null == groups
|
|
||||||
? _value._groups
|
|
||||||
: groups // ignore: cast_nullable_to_non_nullable
|
|
||||||
as List<int>,
|
|
||||||
userPermissions: null == userPermissions
|
|
||||||
? _value._userPermissions
|
|
||||||
: userPermissions // ignore: cast_nullable_to_non_nullable
|
|
||||||
as List<String>,
|
|
||||||
inheritedPermissions: null == inheritedPermissions
|
|
||||||
? _value._inheritedPermissions
|
|
||||||
: inheritedPermissions // ignore: cast_nullable_to_non_nullable
|
|
||||||
as List<InheritedPermissions>,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
||||||
@HiveType(typeId: PaperlessApiHiveTypeIds.userModelv3)
|
|
||||||
class _$UserModelV3 extends UserModelV3 {
|
|
||||||
const _$UserModelV3(
|
|
||||||
{@HiveField(0) required this.id,
|
|
||||||
@HiveField(1) required this.username,
|
|
||||||
@HiveField(2) required this.email,
|
|
||||||
@HiveField(3) this.firstName,
|
|
||||||
@HiveField(4) this.lastName,
|
|
||||||
@HiveField(5) this.dateJoined,
|
|
||||||
@HiveField(6) this.isStaff = true,
|
|
||||||
@HiveField(7) this.isActive = true,
|
|
||||||
@HiveField(8) this.isSuperuser = true,
|
|
||||||
@HiveField(9) final List<int> groups = const [],
|
|
||||||
@HiveField(10) final List<String> userPermissions = const [],
|
|
||||||
@HiveField(11) final List<InheritedPermissions> inheritedPermissions =
|
|
||||||
InheritedPermissions.values,
|
|
||||||
final String? $type})
|
|
||||||
: _groups = groups,
|
|
||||||
_userPermissions = userPermissions,
|
|
||||||
_inheritedPermissions = inheritedPermissions,
|
|
||||||
$type = $type ?? 'v3',
|
|
||||||
super._();
|
|
||||||
|
|
||||||
factory _$UserModelV3.fromJson(Map<String, dynamic> json) =>
|
|
||||||
_$$UserModelV3FromJson(json);
|
|
||||||
|
|
||||||
@override
|
|
||||||
@HiveField(0)
|
|
||||||
final int id;
|
|
||||||
@override
|
|
||||||
@HiveField(1)
|
|
||||||
final String username;
|
|
||||||
@override
|
|
||||||
@HiveField(2)
|
|
||||||
final String email;
|
|
||||||
@override
|
|
||||||
@HiveField(3)
|
|
||||||
final String? firstName;
|
|
||||||
@override
|
|
||||||
@HiveField(4)
|
|
||||||
final String? lastName;
|
|
||||||
@override
|
|
||||||
@HiveField(5)
|
|
||||||
final DateTime? dateJoined;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
@HiveField(6)
|
|
||||||
final bool isStaff;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
@HiveField(7)
|
|
||||||
final bool isActive;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
@HiveField(8)
|
|
||||||
final bool isSuperuser;
|
|
||||||
final List<int> _groups;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
@HiveField(9)
|
|
||||||
List<int> get groups {
|
|
||||||
if (_groups is EqualUnmodifiableListView) return _groups;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableListView(_groups);
|
|
||||||
}
|
|
||||||
|
|
||||||
final List<String> _userPermissions;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
@HiveField(10)
|
|
||||||
List<String> get userPermissions {
|
|
||||||
if (_userPermissions is EqualUnmodifiableListView) return _userPermissions;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableListView(_userPermissions);
|
|
||||||
}
|
|
||||||
|
|
||||||
final List<InheritedPermissions> _inheritedPermissions;
|
|
||||||
@override
|
|
||||||
@JsonKey()
|
|
||||||
@HiveField(11)
|
|
||||||
List<InheritedPermissions> get inheritedPermissions {
|
|
||||||
if (_inheritedPermissions is EqualUnmodifiableListView)
|
|
||||||
return _inheritedPermissions;
|
|
||||||
// ignore: implicit_dynamic_type
|
|
||||||
return EqualUnmodifiableListView(_inheritedPermissions);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(name: 'runtimeType')
|
|
||||||
final String $type;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'UserModel.v3(id: $id, username: $username, email: $email, firstName: $firstName, lastName: $lastName, dateJoined: $dateJoined, isStaff: $isStaff, isActive: $isActive, isSuperuser: $isSuperuser, groups: $groups, userPermissions: $userPermissions, inheritedPermissions: $inheritedPermissions)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$UserModelV3 &&
|
|
||||||
(identical(other.id, id) || other.id == id) &&
|
|
||||||
(identical(other.username, username) ||
|
|
||||||
other.username == username) &&
|
|
||||||
(identical(other.email, email) || other.email == email) &&
|
|
||||||
(identical(other.firstName, firstName) ||
|
|
||||||
other.firstName == firstName) &&
|
|
||||||
(identical(other.lastName, lastName) ||
|
|
||||||
other.lastName == lastName) &&
|
|
||||||
(identical(other.dateJoined, dateJoined) ||
|
|
||||||
other.dateJoined == dateJoined) &&
|
|
||||||
(identical(other.isStaff, isStaff) || other.isStaff == isStaff) &&
|
|
||||||
(identical(other.isActive, isActive) ||
|
|
||||||
other.isActive == isActive) &&
|
|
||||||
(identical(other.isSuperuser, isSuperuser) ||
|
|
||||||
other.isSuperuser == isSuperuser) &&
|
|
||||||
const DeepCollectionEquality().equals(other._groups, _groups) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._userPermissions, _userPermissions) &&
|
|
||||||
const DeepCollectionEquality()
|
|
||||||
.equals(other._inheritedPermissions, _inheritedPermissions));
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(
|
|
||||||
runtimeType,
|
|
||||||
id,
|
|
||||||
username,
|
|
||||||
email,
|
|
||||||
firstName,
|
|
||||||
lastName,
|
|
||||||
dateJoined,
|
|
||||||
isStaff,
|
|
||||||
isActive,
|
|
||||||
isSuperuser,
|
|
||||||
const DeepCollectionEquality().hash(_groups),
|
|
||||||
const DeepCollectionEquality().hash(_userPermissions),
|
|
||||||
const DeepCollectionEquality().hash(_inheritedPermissions));
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$UserModelV3CopyWith<_$UserModelV3> get copyWith =>
|
|
||||||
__$$UserModelV3CopyWithImpl<_$UserModelV3>(this, _$identity);
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function(
|
|
||||||
@HiveField(0) int id,
|
|
||||||
@HiveField(1) String username,
|
|
||||||
@HiveField(2) String email,
|
|
||||||
@HiveField(3) String? firstName,
|
|
||||||
@HiveField(4) String? lastName,
|
|
||||||
@HiveField(5) DateTime? dateJoined,
|
|
||||||
@HiveField(6) bool isStaff,
|
|
||||||
@HiveField(7) bool isActive,
|
|
||||||
@HiveField(8) bool isSuperuser,
|
|
||||||
@HiveField(9) List<int> groups,
|
|
||||||
@HiveField(10) List<String> userPermissions,
|
|
||||||
@HiveField(11) List<InheritedPermissions> inheritedPermissions)
|
|
||||||
v3,
|
|
||||||
required TResult Function(@HiveField(0) @JsonKey(name: "user_id") int id,
|
|
||||||
@HiveField(1) String username, @HiveField(2) String? displayName)
|
|
||||||
v2,
|
|
||||||
}) {
|
|
||||||
return v3(id, username, email, firstName, lastName, dateJoined, isStaff,
|
|
||||||
isActive, isSuperuser, groups, userPermissions, inheritedPermissions);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(
|
|
||||||
@HiveField(0) int id,
|
|
||||||
@HiveField(1) String username,
|
|
||||||
@HiveField(2) String email,
|
|
||||||
@HiveField(3) String? firstName,
|
|
||||||
@HiveField(4) String? lastName,
|
|
||||||
@HiveField(5) DateTime? dateJoined,
|
|
||||||
@HiveField(6) bool isStaff,
|
|
||||||
@HiveField(7) bool isActive,
|
|
||||||
@HiveField(8) bool isSuperuser,
|
|
||||||
@HiveField(9) List<int> groups,
|
|
||||||
@HiveField(10) List<String> userPermissions,
|
|
||||||
@HiveField(11) List<InheritedPermissions> inheritedPermissions)?
|
|
||||||
v3,
|
|
||||||
TResult? Function(@HiveField(0) @JsonKey(name: "user_id") int id,
|
|
||||||
@HiveField(1) String username, @HiveField(2) String? displayName)?
|
|
||||||
v2,
|
|
||||||
}) {
|
|
||||||
return v3?.call(
|
|
||||||
id,
|
|
||||||
username,
|
|
||||||
email,
|
|
||||||
firstName,
|
|
||||||
lastName,
|
|
||||||
dateJoined,
|
|
||||||
isStaff,
|
|
||||||
isActive,
|
|
||||||
isSuperuser,
|
|
||||||
groups,
|
|
||||||
userPermissions,
|
|
||||||
inheritedPermissions);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function(
|
|
||||||
@HiveField(0) int id,
|
|
||||||
@HiveField(1) String username,
|
|
||||||
@HiveField(2) String email,
|
|
||||||
@HiveField(3) String? firstName,
|
|
||||||
@HiveField(4) String? lastName,
|
|
||||||
@HiveField(5) DateTime? dateJoined,
|
|
||||||
@HiveField(6) bool isStaff,
|
|
||||||
@HiveField(7) bool isActive,
|
|
||||||
@HiveField(8) bool isSuperuser,
|
|
||||||
@HiveField(9) List<int> groups,
|
|
||||||
@HiveField(10) List<String> userPermissions,
|
|
||||||
@HiveField(11) List<InheritedPermissions> inheritedPermissions)?
|
|
||||||
v3,
|
|
||||||
TResult Function(@HiveField(0) @JsonKey(name: "user_id") int id,
|
|
||||||
@HiveField(1) String username, @HiveField(2) String? displayName)?
|
|
||||||
v2,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (v3 != null) {
|
|
||||||
return v3(id, username, email, firstName, lastName, dateJoined, isStaff,
|
|
||||||
isActive, isSuperuser, groups, userPermissions, inheritedPermissions);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(UserModelV3 value) v3,
|
|
||||||
required TResult Function(UserModelV2 value) v2,
|
|
||||||
}) {
|
|
||||||
return v3(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(UserModelV3 value)? v3,
|
|
||||||
TResult? Function(UserModelV2 value)? v2,
|
|
||||||
}) {
|
|
||||||
return v3?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(UserModelV3 value)? v3,
|
|
||||||
TResult Function(UserModelV2 value)? v2,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (v3 != null) {
|
|
||||||
return v3(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
return _$$UserModelV3ToJson(
|
|
||||||
this,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class UserModelV3 extends UserModel {
|
|
||||||
const factory UserModelV3(
|
|
||||||
{@HiveField(0)
|
|
||||||
required final int id,
|
|
||||||
@HiveField(1)
|
|
||||||
required final String username,
|
|
||||||
@HiveField(2)
|
|
||||||
required final String email,
|
|
||||||
@HiveField(3)
|
|
||||||
final String? firstName,
|
|
||||||
@HiveField(4)
|
|
||||||
final String? lastName,
|
|
||||||
@HiveField(5)
|
|
||||||
final DateTime? dateJoined,
|
|
||||||
@HiveField(6)
|
|
||||||
final bool isStaff,
|
|
||||||
@HiveField(7)
|
|
||||||
final bool isActive,
|
|
||||||
@HiveField(8)
|
|
||||||
final bool isSuperuser,
|
|
||||||
@HiveField(9)
|
|
||||||
final List<int> groups,
|
|
||||||
@HiveField(10)
|
|
||||||
final List<String> userPermissions,
|
|
||||||
@HiveField(11)
|
|
||||||
final List<InheritedPermissions> inheritedPermissions}) =
|
|
||||||
_$UserModelV3;
|
|
||||||
const UserModelV3._() : super._();
|
|
||||||
|
|
||||||
factory UserModelV3.fromJson(Map<String, dynamic> json) =
|
|
||||||
_$UserModelV3.fromJson;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@HiveField(0)
|
|
||||||
int get id;
|
|
||||||
@override
|
|
||||||
@HiveField(1)
|
|
||||||
String get username;
|
|
||||||
@HiveField(2)
|
|
||||||
String get email;
|
|
||||||
@HiveField(3)
|
|
||||||
String? get firstName;
|
|
||||||
@HiveField(4)
|
|
||||||
String? get lastName;
|
|
||||||
@HiveField(5)
|
|
||||||
DateTime? get dateJoined;
|
|
||||||
@HiveField(6)
|
|
||||||
bool get isStaff;
|
|
||||||
@HiveField(7)
|
|
||||||
bool get isActive;
|
|
||||||
@HiveField(8)
|
|
||||||
bool get isSuperuser;
|
|
||||||
@HiveField(9)
|
|
||||||
List<int> get groups;
|
|
||||||
@HiveField(10)
|
|
||||||
List<String> get userPermissions;
|
|
||||||
@HiveField(11)
|
|
||||||
List<InheritedPermissions> get inheritedPermissions;
|
|
||||||
@override
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$UserModelV3CopyWith<_$UserModelV3> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$UserModelV2CopyWith<$Res>
|
|
||||||
implements $UserModelCopyWith<$Res> {
|
|
||||||
factory _$$UserModelV2CopyWith(
|
|
||||||
_$UserModelV2 value, $Res Function(_$UserModelV2) then) =
|
|
||||||
__$$UserModelV2CopyWithImpl<$Res>;
|
|
||||||
@override
|
|
||||||
@useResult
|
|
||||||
$Res call(
|
|
||||||
{@HiveField(0) @JsonKey(name: "user_id") int id,
|
|
||||||
@HiveField(1) String username,
|
|
||||||
@HiveField(2) String? displayName});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$UserModelV2CopyWithImpl<$Res>
|
|
||||||
extends _$UserModelCopyWithImpl<$Res, _$UserModelV2>
|
|
||||||
implements _$$UserModelV2CopyWith<$Res> {
|
|
||||||
__$$UserModelV2CopyWithImpl(
|
|
||||||
_$UserModelV2 _value, $Res Function(_$UserModelV2) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? id = null,
|
|
||||||
Object? username = null,
|
|
||||||
Object? displayName = freezed,
|
|
||||||
}) {
|
|
||||||
return _then(_$UserModelV2(
|
|
||||||
id: null == id
|
|
||||||
? _value.id
|
|
||||||
: id // ignore: cast_nullable_to_non_nullable
|
|
||||||
as int,
|
|
||||||
username: null == username
|
|
||||||
? _value.username
|
|
||||||
: username // ignore: cast_nullable_to_non_nullable
|
|
||||||
as String,
|
|
||||||
displayName: freezed == displayName
|
|
||||||
? _value.displayName
|
|
||||||
: displayName // ignore: cast_nullable_to_non_nullable
|
|
||||||
as String?,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
||||||
@HiveType(typeId: PaperlessApiHiveTypeIds.userModelv2)
|
|
||||||
class _$UserModelV2 extends UserModelV2 {
|
|
||||||
const _$UserModelV2(
|
|
||||||
{@HiveField(0) @JsonKey(name: "user_id") required this.id,
|
|
||||||
@HiveField(1) required this.username,
|
|
||||||
@HiveField(2) this.displayName,
|
|
||||||
final String? $type})
|
|
||||||
: $type = $type ?? 'v2',
|
|
||||||
super._();
|
|
||||||
|
|
||||||
factory _$UserModelV2.fromJson(Map<String, dynamic> json) =>
|
|
||||||
_$$UserModelV2FromJson(json);
|
|
||||||
|
|
||||||
@override
|
|
||||||
@HiveField(0)
|
|
||||||
@JsonKey(name: "user_id")
|
|
||||||
final int id;
|
|
||||||
@override
|
|
||||||
@HiveField(1)
|
|
||||||
final String username;
|
|
||||||
@override
|
|
||||||
@HiveField(2)
|
|
||||||
final String? displayName;
|
|
||||||
|
|
||||||
@JsonKey(name: 'runtimeType')
|
|
||||||
final String $type;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'UserModel.v2(id: $id, username: $username, displayName: $displayName)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(dynamic other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$UserModelV2 &&
|
|
||||||
(identical(other.id, id) || other.id == id) &&
|
|
||||||
(identical(other.username, username) ||
|
|
||||||
other.username == username) &&
|
|
||||||
(identical(other.displayName, displayName) ||
|
|
||||||
other.displayName == displayName));
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(runtimeType, id, username, displayName);
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$UserModelV2CopyWith<_$UserModelV2> get copyWith =>
|
|
||||||
__$$UserModelV2CopyWithImpl<_$UserModelV2>(this, _$identity);
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function(
|
|
||||||
@HiveField(0) int id,
|
|
||||||
@HiveField(1) String username,
|
|
||||||
@HiveField(2) String email,
|
|
||||||
@HiveField(3) String? firstName,
|
|
||||||
@HiveField(4) String? lastName,
|
|
||||||
@HiveField(5) DateTime? dateJoined,
|
|
||||||
@HiveField(6) bool isStaff,
|
|
||||||
@HiveField(7) bool isActive,
|
|
||||||
@HiveField(8) bool isSuperuser,
|
|
||||||
@HiveField(9) List<int> groups,
|
|
||||||
@HiveField(10) List<String> userPermissions,
|
|
||||||
@HiveField(11) List<InheritedPermissions> inheritedPermissions)
|
|
||||||
v3,
|
|
||||||
required TResult Function(@HiveField(0) @JsonKey(name: "user_id") int id,
|
|
||||||
@HiveField(1) String username, @HiveField(2) String? displayName)
|
|
||||||
v2,
|
|
||||||
}) {
|
|
||||||
return v2(id, username, displayName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(
|
|
||||||
@HiveField(0) int id,
|
|
||||||
@HiveField(1) String username,
|
|
||||||
@HiveField(2) String email,
|
|
||||||
@HiveField(3) String? firstName,
|
|
||||||
@HiveField(4) String? lastName,
|
|
||||||
@HiveField(5) DateTime? dateJoined,
|
|
||||||
@HiveField(6) bool isStaff,
|
|
||||||
@HiveField(7) bool isActive,
|
|
||||||
@HiveField(8) bool isSuperuser,
|
|
||||||
@HiveField(9) List<int> groups,
|
|
||||||
@HiveField(10) List<String> userPermissions,
|
|
||||||
@HiveField(11) List<InheritedPermissions> inheritedPermissions)?
|
|
||||||
v3,
|
|
||||||
TResult? Function(@HiveField(0) @JsonKey(name: "user_id") int id,
|
|
||||||
@HiveField(1) String username, @HiveField(2) String? displayName)?
|
|
||||||
v2,
|
|
||||||
}) {
|
|
||||||
return v2?.call(id, username, displayName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function(
|
|
||||||
@HiveField(0) int id,
|
|
||||||
@HiveField(1) String username,
|
|
||||||
@HiveField(2) String email,
|
|
||||||
@HiveField(3) String? firstName,
|
|
||||||
@HiveField(4) String? lastName,
|
|
||||||
@HiveField(5) DateTime? dateJoined,
|
|
||||||
@HiveField(6) bool isStaff,
|
|
||||||
@HiveField(7) bool isActive,
|
|
||||||
@HiveField(8) bool isSuperuser,
|
|
||||||
@HiveField(9) List<int> groups,
|
|
||||||
@HiveField(10) List<String> userPermissions,
|
|
||||||
@HiveField(11) List<InheritedPermissions> inheritedPermissions)?
|
|
||||||
v3,
|
|
||||||
TResult Function(@HiveField(0) @JsonKey(name: "user_id") int id,
|
|
||||||
@HiveField(1) String username, @HiveField(2) String? displayName)?
|
|
||||||
v2,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (v2 != null) {
|
|
||||||
return v2(id, username, displayName);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(UserModelV3 value) v3,
|
|
||||||
required TResult Function(UserModelV2 value) v2,
|
|
||||||
}) {
|
|
||||||
return v2(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(UserModelV3 value)? v3,
|
|
||||||
TResult? Function(UserModelV2 value)? v2,
|
|
||||||
}) {
|
|
||||||
return v2?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(UserModelV3 value)? v3,
|
|
||||||
TResult Function(UserModelV2 value)? v2,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (v2 != null) {
|
|
||||||
return v2(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
return _$$UserModelV2ToJson(
|
|
||||||
this,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class UserModelV2 extends UserModel {
|
|
||||||
const factory UserModelV2(
|
|
||||||
{@HiveField(0) @JsonKey(name: "user_id") required final int id,
|
|
||||||
@HiveField(1) required final String username,
|
|
||||||
@HiveField(2) final String? displayName}) = _$UserModelV2;
|
|
||||||
const UserModelV2._() : super._();
|
|
||||||
|
|
||||||
factory UserModelV2.fromJson(Map<String, dynamic> json) =
|
|
||||||
_$UserModelV2.fromJson;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@HiveField(0)
|
|
||||||
@JsonKey(name: "user_id")
|
|
||||||
int get id;
|
|
||||||
@override
|
|
||||||
@HiveField(1)
|
|
||||||
String get username;
|
|
||||||
@HiveField(2)
|
|
||||||
String? get displayName;
|
|
||||||
@override
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$UserModelV2CopyWith<_$UserModelV2> get copyWith =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user