mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-09 10:08:00 -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;
|
||||
}
|
||||
Reference in New Issue
Block a user