497 lines
15 KiB
Dart
497 lines
15 KiB
Dart
// 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 'shared_inbox.dart';
|
|
|
|
// **************************************************************************
|
|
// FreezedGenerator
|
|
// **************************************************************************
|
|
|
|
T _$identity<T>(T value) => value;
|
|
|
|
final _privateConstructorUsedError = UnsupportedError(
|
|
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models',
|
|
);
|
|
|
|
SharedItem _$SharedItemFromJson(Map<String, dynamic> json) {
|
|
return _SharedItem.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SharedItem {
|
|
String get path => throw _privateConstructorUsedError;
|
|
String get type => throw _privateConstructorUsedError;
|
|
String? get message => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this SharedItem to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of SharedItem
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$SharedItemCopyWith<SharedItem> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SharedItemCopyWith<$Res> {
|
|
factory $SharedItemCopyWith(
|
|
SharedItem value,
|
|
$Res Function(SharedItem) then,
|
|
) = _$SharedItemCopyWithImpl<$Res, SharedItem>;
|
|
@useResult
|
|
$Res call({String path, String type, String? message});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SharedItemCopyWithImpl<$Res, $Val extends SharedItem>
|
|
implements $SharedItemCopyWith<$Res> {
|
|
_$SharedItemCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SharedItem
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? path = null,
|
|
Object? type = null,
|
|
Object? message = freezed,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
path: null == path
|
|
? _value.path
|
|
: path // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
type: null == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
message: freezed == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SharedItemImplCopyWith<$Res>
|
|
implements $SharedItemCopyWith<$Res> {
|
|
factory _$$SharedItemImplCopyWith(
|
|
_$SharedItemImpl value,
|
|
$Res Function(_$SharedItemImpl) then,
|
|
) = __$$SharedItemImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({String path, String type, String? message});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SharedItemImplCopyWithImpl<$Res>
|
|
extends _$SharedItemCopyWithImpl<$Res, _$SharedItemImpl>
|
|
implements _$$SharedItemImplCopyWith<$Res> {
|
|
__$$SharedItemImplCopyWithImpl(
|
|
_$SharedItemImpl _value,
|
|
$Res Function(_$SharedItemImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of SharedItem
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? path = null,
|
|
Object? type = null,
|
|
Object? message = freezed,
|
|
}) {
|
|
return _then(
|
|
_$SharedItemImpl(
|
|
path: null == path
|
|
? _value.path
|
|
: path // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
type: null == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
message: freezed == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$SharedItemImpl implements _SharedItem {
|
|
const _$SharedItemImpl({
|
|
required this.path,
|
|
required this.type,
|
|
this.message,
|
|
});
|
|
|
|
factory _$SharedItemImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$SharedItemImplFromJson(json);
|
|
|
|
@override
|
|
final String path;
|
|
@override
|
|
final String type;
|
|
@override
|
|
final String? message;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SharedItem(path: $path, type: $type, message: $message)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SharedItemImpl &&
|
|
(identical(other.path, path) || other.path == path) &&
|
|
(identical(other.type, type) || other.type == type) &&
|
|
(identical(other.message, message) || other.message == message));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, path, type, message);
|
|
|
|
/// Create a copy of SharedItem
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SharedItemImplCopyWith<_$SharedItemImpl> get copyWith =>
|
|
__$$SharedItemImplCopyWithImpl<_$SharedItemImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$SharedItemImplToJson(this);
|
|
}
|
|
}
|
|
|
|
abstract class _SharedItem implements SharedItem {
|
|
const factory _SharedItem({
|
|
required final String path,
|
|
required final String type,
|
|
final String? message,
|
|
}) = _$SharedItemImpl;
|
|
|
|
factory _SharedItem.fromJson(Map<String, dynamic> json) =
|
|
_$SharedItemImpl.fromJson;
|
|
|
|
@override
|
|
String get path;
|
|
@override
|
|
String get type;
|
|
@override
|
|
String? get message;
|
|
|
|
/// Create a copy of SharedItem
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$SharedItemImplCopyWith<_$SharedItemImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
SharedInbox _$SharedInboxFromJson(Map<String, dynamic> json) {
|
|
return _SharedInbox.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SharedInbox {
|
|
List<SharedItem> get items => throw _privateConstructorUsedError;
|
|
bool get importing => throw _privateConstructorUsedError;
|
|
bool get failed => throw _privateConstructorUsedError;
|
|
int get delivery => throw _privateConstructorUsedError;
|
|
String? get clipboardText => throw _privateConstructorUsedError;
|
|
String? get clipboardUrl => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this SharedInbox to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of SharedInbox
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$SharedInboxCopyWith<SharedInbox> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SharedInboxCopyWith<$Res> {
|
|
factory $SharedInboxCopyWith(
|
|
SharedInbox value,
|
|
$Res Function(SharedInbox) then,
|
|
) = _$SharedInboxCopyWithImpl<$Res, SharedInbox>;
|
|
@useResult
|
|
$Res call({
|
|
List<SharedItem> items,
|
|
bool importing,
|
|
bool failed,
|
|
int delivery,
|
|
String? clipboardText,
|
|
String? clipboardUrl,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SharedInboxCopyWithImpl<$Res, $Val extends SharedInbox>
|
|
implements $SharedInboxCopyWith<$Res> {
|
|
_$SharedInboxCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SharedInbox
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? items = null,
|
|
Object? importing = null,
|
|
Object? failed = null,
|
|
Object? delivery = null,
|
|
Object? clipboardText = freezed,
|
|
Object? clipboardUrl = freezed,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
items: null == items
|
|
? _value.items
|
|
: items // ignore: cast_nullable_to_non_nullable
|
|
as List<SharedItem>,
|
|
importing: null == importing
|
|
? _value.importing
|
|
: importing // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
failed: null == failed
|
|
? _value.failed
|
|
: failed // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
delivery: null == delivery
|
|
? _value.delivery
|
|
: delivery // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
clipboardText: freezed == clipboardText
|
|
? _value.clipboardText
|
|
: clipboardText // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
clipboardUrl: freezed == clipboardUrl
|
|
? _value.clipboardUrl
|
|
: clipboardUrl // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SharedInboxImplCopyWith<$Res>
|
|
implements $SharedInboxCopyWith<$Res> {
|
|
factory _$$SharedInboxImplCopyWith(
|
|
_$SharedInboxImpl value,
|
|
$Res Function(_$SharedInboxImpl) then,
|
|
) = __$$SharedInboxImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
List<SharedItem> items,
|
|
bool importing,
|
|
bool failed,
|
|
int delivery,
|
|
String? clipboardText,
|
|
String? clipboardUrl,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SharedInboxImplCopyWithImpl<$Res>
|
|
extends _$SharedInboxCopyWithImpl<$Res, _$SharedInboxImpl>
|
|
implements _$$SharedInboxImplCopyWith<$Res> {
|
|
__$$SharedInboxImplCopyWithImpl(
|
|
_$SharedInboxImpl _value,
|
|
$Res Function(_$SharedInboxImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of SharedInbox
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? items = null,
|
|
Object? importing = null,
|
|
Object? failed = null,
|
|
Object? delivery = null,
|
|
Object? clipboardText = freezed,
|
|
Object? clipboardUrl = freezed,
|
|
}) {
|
|
return _then(
|
|
_$SharedInboxImpl(
|
|
items: null == items
|
|
? _value._items
|
|
: items // ignore: cast_nullable_to_non_nullable
|
|
as List<SharedItem>,
|
|
importing: null == importing
|
|
? _value.importing
|
|
: importing // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
failed: null == failed
|
|
? _value.failed
|
|
: failed // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
delivery: null == delivery
|
|
? _value.delivery
|
|
: delivery // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
clipboardText: freezed == clipboardText
|
|
? _value.clipboardText
|
|
: clipboardText // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
clipboardUrl: freezed == clipboardUrl
|
|
? _value.clipboardUrl
|
|
: clipboardUrl // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$SharedInboxImpl implements _SharedInbox {
|
|
const _$SharedInboxImpl({
|
|
final List<SharedItem> items = const [],
|
|
this.importing = false,
|
|
this.failed = false,
|
|
this.delivery = 0,
|
|
this.clipboardText,
|
|
this.clipboardUrl,
|
|
}) : _items = items;
|
|
|
|
factory _$SharedInboxImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$SharedInboxImplFromJson(json);
|
|
|
|
final List<SharedItem> _items;
|
|
@override
|
|
@JsonKey()
|
|
List<SharedItem> get items {
|
|
if (_items is EqualUnmodifiableListView) return _items;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_items);
|
|
}
|
|
|
|
@override
|
|
@JsonKey()
|
|
final bool importing;
|
|
@override
|
|
@JsonKey()
|
|
final bool failed;
|
|
@override
|
|
@JsonKey()
|
|
final int delivery;
|
|
@override
|
|
final String? clipboardText;
|
|
@override
|
|
final String? clipboardUrl;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SharedInbox(items: $items, importing: $importing, failed: $failed, delivery: $delivery, clipboardText: $clipboardText, clipboardUrl: $clipboardUrl)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SharedInboxImpl &&
|
|
const DeepCollectionEquality().equals(other._items, _items) &&
|
|
(identical(other.importing, importing) ||
|
|
other.importing == importing) &&
|
|
(identical(other.failed, failed) || other.failed == failed) &&
|
|
(identical(other.delivery, delivery) ||
|
|
other.delivery == delivery) &&
|
|
(identical(other.clipboardText, clipboardText) ||
|
|
other.clipboardText == clipboardText) &&
|
|
(identical(other.clipboardUrl, clipboardUrl) ||
|
|
other.clipboardUrl == clipboardUrl));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
const DeepCollectionEquality().hash(_items),
|
|
importing,
|
|
failed,
|
|
delivery,
|
|
clipboardText,
|
|
clipboardUrl,
|
|
);
|
|
|
|
/// Create a copy of SharedInbox
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SharedInboxImplCopyWith<_$SharedInboxImpl> get copyWith =>
|
|
__$$SharedInboxImplCopyWithImpl<_$SharedInboxImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$SharedInboxImplToJson(this);
|
|
}
|
|
}
|
|
|
|
abstract class _SharedInbox implements SharedInbox {
|
|
const factory _SharedInbox({
|
|
final List<SharedItem> items,
|
|
final bool importing,
|
|
final bool failed,
|
|
final int delivery,
|
|
final String? clipboardText,
|
|
final String? clipboardUrl,
|
|
}) = _$SharedInboxImpl;
|
|
|
|
factory _SharedInbox.fromJson(Map<String, dynamic> json) =
|
|
_$SharedInboxImpl.fromJson;
|
|
|
|
@override
|
|
List<SharedItem> get items;
|
|
@override
|
|
bool get importing;
|
|
@override
|
|
bool get failed;
|
|
@override
|
|
int get delivery;
|
|
@override
|
|
String? get clipboardText;
|
|
@override
|
|
String? get clipboardUrl;
|
|
|
|
/// Create a copy of SharedInbox
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$SharedInboxImplCopyWith<_$SharedInboxImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|