part of 'linked_documents_cubit.dart'; @JsonSerializable(ignoreUnannotated: true) class LinkedDocumentsState extends DocumentPagingState { @JsonKey() final ViewType viewType; final Map correspondents; final Map documentTypes; final Map storagePaths; final Map tags; const LinkedDocumentsState({ this.viewType = ViewType.list, super.filter = const DocumentFilter(), super.isLoading, super.hasLoaded, super.value, this.correspondents = const {}, this.documentTypes = const {}, this.storagePaths = const {}, this.tags = const {}, }); LinkedDocumentsState copyWith({ DocumentFilter? filter, bool? isLoading, bool? hasLoaded, List>? value, ViewType? viewType, Map? correspondents, Map? documentTypes, Map? storagePaths, Map? tags, }) { return LinkedDocumentsState( filter: filter ?? this.filter, isLoading: isLoading ?? this.isLoading, hasLoaded: hasLoaded ?? this.hasLoaded, value: value ?? this.value, viewType: viewType ?? this.viewType, correspondents: correspondents ?? this.correspondents, documentTypes: documentTypes ?? this.documentTypes, storagePaths: storagePaths ?? this.storagePaths, tags: tags ?? this.tags, ); } @override LinkedDocumentsState copyWithPaged({ bool? hasLoaded, bool? isLoading, List>? value, DocumentFilter? filter, }) { return copyWith( hasLoaded: hasLoaded, isLoading: isLoading, value: value, filter: filter, ); } @override List get props => [ viewType, correspondents, documentTypes, tags, storagePaths, ...super.props, ]; factory LinkedDocumentsState.fromJson(Map json) => _$LinkedDocumentsStateFromJson(json); Map toJson() => _$LinkedDocumentsStateToJson(this); }