2022-07-25 14:06:55 +00:00
|
|
|
import 'package:selfprivacy/utils/scalars.dart';
|
|
|
|
|
2022-08-24 05:35:49 +00:00
|
|
|
class Input$AutoUpgradeSettingsInput {
|
2023-02-24 10:44:55 +00:00
|
|
|
factory Input$AutoUpgradeSettingsInput({
|
|
|
|
bool? enableAutoUpgrade,
|
|
|
|
bool? allowReboot,
|
|
|
|
}) =>
|
|
|
|
Input$AutoUpgradeSettingsInput._({
|
|
|
|
if (enableAutoUpgrade != null) r'enableAutoUpgrade': enableAutoUpgrade,
|
|
|
|
if (allowReboot != null) r'allowReboot': allowReboot,
|
|
|
|
});
|
|
|
|
|
|
|
|
Input$AutoUpgradeSettingsInput._(this._$data);
|
|
|
|
|
|
|
|
factory Input$AutoUpgradeSettingsInput.fromJson(Map<String, dynamic> data) {
|
|
|
|
final result$data = <String, dynamic>{};
|
|
|
|
if (data.containsKey('enableAutoUpgrade')) {
|
|
|
|
final l$enableAutoUpgrade = data['enableAutoUpgrade'];
|
|
|
|
result$data['enableAutoUpgrade'] = (l$enableAutoUpgrade as bool?);
|
|
|
|
}
|
|
|
|
if (data.containsKey('allowReboot')) {
|
|
|
|
final l$allowReboot = data['allowReboot'];
|
|
|
|
result$data['allowReboot'] = (l$allowReboot as bool?);
|
|
|
|
}
|
|
|
|
return Input$AutoUpgradeSettingsInput._(result$data);
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
Map<String, dynamic> _$data;
|
|
|
|
|
|
|
|
bool? get enableAutoUpgrade => (_$data['enableAutoUpgrade'] as bool?);
|
|
|
|
bool? get allowReboot => (_$data['allowReboot'] as bool?);
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final result$data = <String, dynamic>{};
|
|
|
|
if (_$data.containsKey('enableAutoUpgrade')) {
|
|
|
|
final l$enableAutoUpgrade = enableAutoUpgrade;
|
|
|
|
result$data['enableAutoUpgrade'] = l$enableAutoUpgrade;
|
|
|
|
}
|
|
|
|
if (_$data.containsKey('allowReboot')) {
|
|
|
|
final l$allowReboot = allowReboot;
|
|
|
|
result$data['allowReboot'] = l$allowReboot;
|
|
|
|
}
|
|
|
|
return result$data;
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
CopyWith$Input$AutoUpgradeSettingsInput<Input$AutoUpgradeSettingsInput>
|
|
|
|
get copyWith => CopyWith$Input$AutoUpgradeSettingsInput(
|
|
|
|
this,
|
|
|
|
(i) => i,
|
|
|
|
);
|
2022-08-24 05:35:49 +00:00
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
2023-02-24 10:44:55 +00:00
|
|
|
if (identical(this, other)) {
|
|
|
|
return true;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
if (!(other is Input$AutoUpgradeSettingsInput) ||
|
2023-02-24 10:44:55 +00:00
|
|
|
runtimeType != other.runtimeType) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$enableAutoUpgrade = enableAutoUpgrade;
|
|
|
|
final lOther$enableAutoUpgrade = other.enableAutoUpgrade;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (_$data.containsKey('enableAutoUpgrade') !=
|
|
|
|
other._$data.containsKey('enableAutoUpgrade')) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if (l$enableAutoUpgrade != lOther$enableAutoUpgrade) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$allowReboot = allowReboot;
|
|
|
|
final lOther$allowReboot = other.allowReboot;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (_$data.containsKey('allowReboot') !=
|
|
|
|
other._$data.containsKey('allowReboot')) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if (l$allowReboot != lOther$allowReboot) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
@override
|
|
|
|
int get hashCode {
|
|
|
|
final l$enableAutoUpgrade = enableAutoUpgrade;
|
|
|
|
final l$allowReboot = allowReboot;
|
|
|
|
return Object.hashAll([
|
|
|
|
_$data.containsKey('enableAutoUpgrade') ? l$enableAutoUpgrade : const {},
|
|
|
|
_$data.containsKey('allowReboot') ? l$allowReboot : const {},
|
|
|
|
]);
|
|
|
|
}
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
abstract class CopyWith$Input$AutoUpgradeSettingsInput<TRes> {
|
|
|
|
factory CopyWith$Input$AutoUpgradeSettingsInput(
|
2023-02-24 10:44:55 +00:00
|
|
|
Input$AutoUpgradeSettingsInput instance,
|
|
|
|
TRes Function(Input$AutoUpgradeSettingsInput) then,
|
|
|
|
) = _CopyWithImpl$Input$AutoUpgradeSettingsInput;
|
2022-08-29 18:18:07 +00:00
|
|
|
|
|
|
|
factory CopyWith$Input$AutoUpgradeSettingsInput.stub(TRes res) =
|
|
|
|
_CopyWithStubImpl$Input$AutoUpgradeSettingsInput;
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
TRes call({
|
|
|
|
bool? enableAutoUpgrade,
|
|
|
|
bool? allowReboot,
|
|
|
|
});
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithImpl$Input$AutoUpgradeSettingsInput<TRes>
|
|
|
|
implements CopyWith$Input$AutoUpgradeSettingsInput<TRes> {
|
2023-02-24 10:44:55 +00:00
|
|
|
_CopyWithImpl$Input$AutoUpgradeSettingsInput(
|
|
|
|
this._instance,
|
|
|
|
this._then,
|
|
|
|
);
|
2022-08-29 18:18:07 +00:00
|
|
|
|
|
|
|
final Input$AutoUpgradeSettingsInput _instance;
|
|
|
|
|
|
|
|
final TRes Function(Input$AutoUpgradeSettingsInput) _then;
|
|
|
|
|
2023-05-30 17:25:46 +00:00
|
|
|
static const _undefined = <dynamic, dynamic>{};
|
2022-08-29 18:18:07 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
TRes call({
|
|
|
|
Object? enableAutoUpgrade = _undefined,
|
|
|
|
Object? allowReboot = _undefined,
|
|
|
|
}) =>
|
|
|
|
_then(Input$AutoUpgradeSettingsInput._({
|
|
|
|
..._instance._$data,
|
|
|
|
if (enableAutoUpgrade != _undefined)
|
|
|
|
'enableAutoUpgrade': (enableAutoUpgrade as bool?),
|
|
|
|
if (allowReboot != _undefined) 'allowReboot': (allowReboot as bool?),
|
|
|
|
}));
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithStubImpl$Input$AutoUpgradeSettingsInput<TRes>
|
|
|
|
implements CopyWith$Input$AutoUpgradeSettingsInput<TRes> {
|
|
|
|
_CopyWithStubImpl$Input$AutoUpgradeSettingsInput(this._res);
|
|
|
|
|
|
|
|
TRes _res;
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
call({
|
|
|
|
bool? enableAutoUpgrade,
|
|
|
|
bool? allowReboot,
|
|
|
|
}) =>
|
|
|
|
_res;
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
2023-09-09 07:22:43 +00:00
|
|
|
class Input$AutobackupQuotasInput {
|
|
|
|
factory Input$AutobackupQuotasInput({
|
|
|
|
required int last,
|
|
|
|
required int daily,
|
|
|
|
required int weekly,
|
|
|
|
required int monthly,
|
|
|
|
required int yearly,
|
|
|
|
}) =>
|
|
|
|
Input$AutobackupQuotasInput._({
|
|
|
|
r'last': last,
|
|
|
|
r'daily': daily,
|
|
|
|
r'weekly': weekly,
|
|
|
|
r'monthly': monthly,
|
|
|
|
r'yearly': yearly,
|
|
|
|
});
|
|
|
|
|
|
|
|
Input$AutobackupQuotasInput._(this._$data);
|
|
|
|
|
|
|
|
factory Input$AutobackupQuotasInput.fromJson(Map<String, dynamic> data) {
|
|
|
|
final result$data = <String, dynamic>{};
|
|
|
|
final l$last = data['last'];
|
|
|
|
result$data['last'] = (l$last as int);
|
|
|
|
final l$daily = data['daily'];
|
|
|
|
result$data['daily'] = (l$daily as int);
|
|
|
|
final l$weekly = data['weekly'];
|
|
|
|
result$data['weekly'] = (l$weekly as int);
|
|
|
|
final l$monthly = data['monthly'];
|
|
|
|
result$data['monthly'] = (l$monthly as int);
|
|
|
|
final l$yearly = data['yearly'];
|
|
|
|
result$data['yearly'] = (l$yearly as int);
|
|
|
|
return Input$AutobackupQuotasInput._(result$data);
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$data;
|
|
|
|
|
|
|
|
int get last => (_$data['last'] as int);
|
|
|
|
int get daily => (_$data['daily'] as int);
|
|
|
|
int get weekly => (_$data['weekly'] as int);
|
|
|
|
int get monthly => (_$data['monthly'] as int);
|
|
|
|
int get yearly => (_$data['yearly'] as int);
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final result$data = <String, dynamic>{};
|
|
|
|
final l$last = last;
|
|
|
|
result$data['last'] = l$last;
|
|
|
|
final l$daily = daily;
|
|
|
|
result$data['daily'] = l$daily;
|
|
|
|
final l$weekly = weekly;
|
|
|
|
result$data['weekly'] = l$weekly;
|
|
|
|
final l$monthly = monthly;
|
|
|
|
result$data['monthly'] = l$monthly;
|
|
|
|
final l$yearly = yearly;
|
|
|
|
result$data['yearly'] = l$yearly;
|
|
|
|
return result$data;
|
|
|
|
}
|
|
|
|
|
|
|
|
CopyWith$Input$AutobackupQuotasInput<Input$AutobackupQuotasInput>
|
|
|
|
get copyWith => CopyWith$Input$AutobackupQuotasInput(
|
|
|
|
this,
|
|
|
|
(i) => i,
|
|
|
|
);
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
if (identical(this, other)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(other is Input$AutobackupQuotasInput) ||
|
|
|
|
runtimeType != other.runtimeType) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
final l$last = last;
|
|
|
|
final lOther$last = other.last;
|
|
|
|
if (l$last != lOther$last) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
final l$daily = daily;
|
|
|
|
final lOther$daily = other.daily;
|
|
|
|
if (l$daily != lOther$daily) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
final l$weekly = weekly;
|
|
|
|
final lOther$weekly = other.weekly;
|
|
|
|
if (l$weekly != lOther$weekly) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
final l$monthly = monthly;
|
|
|
|
final lOther$monthly = other.monthly;
|
|
|
|
if (l$monthly != lOther$monthly) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
final l$yearly = yearly;
|
|
|
|
final lOther$yearly = other.yearly;
|
|
|
|
if (l$yearly != lOther$yearly) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
int get hashCode {
|
|
|
|
final l$last = last;
|
|
|
|
final l$daily = daily;
|
|
|
|
final l$weekly = weekly;
|
|
|
|
final l$monthly = monthly;
|
|
|
|
final l$yearly = yearly;
|
|
|
|
return Object.hashAll([
|
|
|
|
l$last,
|
|
|
|
l$daily,
|
|
|
|
l$weekly,
|
|
|
|
l$monthly,
|
|
|
|
l$yearly,
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
abstract class CopyWith$Input$AutobackupQuotasInput<TRes> {
|
|
|
|
factory CopyWith$Input$AutobackupQuotasInput(
|
|
|
|
Input$AutobackupQuotasInput instance,
|
|
|
|
TRes Function(Input$AutobackupQuotasInput) then,
|
|
|
|
) = _CopyWithImpl$Input$AutobackupQuotasInput;
|
|
|
|
|
|
|
|
factory CopyWith$Input$AutobackupQuotasInput.stub(TRes res) =
|
|
|
|
_CopyWithStubImpl$Input$AutobackupQuotasInput;
|
|
|
|
|
|
|
|
TRes call({
|
|
|
|
int? last,
|
|
|
|
int? daily,
|
|
|
|
int? weekly,
|
|
|
|
int? monthly,
|
|
|
|
int? yearly,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithImpl$Input$AutobackupQuotasInput<TRes>
|
|
|
|
implements CopyWith$Input$AutobackupQuotasInput<TRes> {
|
|
|
|
_CopyWithImpl$Input$AutobackupQuotasInput(
|
|
|
|
this._instance,
|
|
|
|
this._then,
|
|
|
|
);
|
|
|
|
|
|
|
|
final Input$AutobackupQuotasInput _instance;
|
|
|
|
|
|
|
|
final TRes Function(Input$AutobackupQuotasInput) _then;
|
|
|
|
|
|
|
|
static const _undefined = <dynamic, dynamic>{};
|
|
|
|
|
|
|
|
TRes call({
|
|
|
|
Object? last = _undefined,
|
|
|
|
Object? daily = _undefined,
|
|
|
|
Object? weekly = _undefined,
|
|
|
|
Object? monthly = _undefined,
|
|
|
|
Object? yearly = _undefined,
|
|
|
|
}) =>
|
|
|
|
_then(Input$AutobackupQuotasInput._({
|
|
|
|
..._instance._$data,
|
|
|
|
if (last != _undefined && last != null) 'last': (last as int),
|
|
|
|
if (daily != _undefined && daily != null) 'daily': (daily as int),
|
|
|
|
if (weekly != _undefined && weekly != null) 'weekly': (weekly as int),
|
|
|
|
if (monthly != _undefined && monthly != null)
|
|
|
|
'monthly': (monthly as int),
|
|
|
|
if (yearly != _undefined && yearly != null) 'yearly': (yearly as int),
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithStubImpl$Input$AutobackupQuotasInput<TRes>
|
|
|
|
implements CopyWith$Input$AutobackupQuotasInput<TRes> {
|
|
|
|
_CopyWithStubImpl$Input$AutobackupQuotasInput(this._res);
|
|
|
|
|
|
|
|
TRes _res;
|
|
|
|
|
|
|
|
call({
|
|
|
|
int? last,
|
|
|
|
int? daily,
|
|
|
|
int? weekly,
|
|
|
|
int? monthly,
|
|
|
|
int? yearly,
|
|
|
|
}) =>
|
|
|
|
_res;
|
|
|
|
}
|
|
|
|
|
2023-06-16 01:30:46 +00:00
|
|
|
class Input$InitializeRepositoryInput {
|
|
|
|
factory Input$InitializeRepositoryInput({
|
|
|
|
required Enum$BackupProvider provider,
|
|
|
|
required String locationId,
|
|
|
|
required String locationName,
|
|
|
|
required String login,
|
|
|
|
required String password,
|
|
|
|
}) =>
|
|
|
|
Input$InitializeRepositoryInput._({
|
|
|
|
r'provider': provider,
|
|
|
|
r'locationId': locationId,
|
|
|
|
r'locationName': locationName,
|
|
|
|
r'login': login,
|
|
|
|
r'password': password,
|
|
|
|
});
|
|
|
|
|
|
|
|
Input$InitializeRepositoryInput._(this._$data);
|
|
|
|
|
|
|
|
factory Input$InitializeRepositoryInput.fromJson(Map<String, dynamic> data) {
|
|
|
|
final result$data = <String, dynamic>{};
|
|
|
|
final l$provider = data['provider'];
|
|
|
|
result$data['provider'] =
|
|
|
|
fromJson$Enum$BackupProvider((l$provider as String));
|
|
|
|
final l$locationId = data['locationId'];
|
|
|
|
result$data['locationId'] = (l$locationId as String);
|
|
|
|
final l$locationName = data['locationName'];
|
|
|
|
result$data['locationName'] = (l$locationName as String);
|
|
|
|
final l$login = data['login'];
|
|
|
|
result$data['login'] = (l$login as String);
|
|
|
|
final l$password = data['password'];
|
|
|
|
result$data['password'] = (l$password as String);
|
|
|
|
return Input$InitializeRepositoryInput._(result$data);
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$data;
|
|
|
|
|
|
|
|
Enum$BackupProvider get provider =>
|
|
|
|
(_$data['provider'] as Enum$BackupProvider);
|
|
|
|
String get locationId => (_$data['locationId'] as String);
|
|
|
|
String get locationName => (_$data['locationName'] as String);
|
|
|
|
String get login => (_$data['login'] as String);
|
|
|
|
String get password => (_$data['password'] as String);
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final result$data = <String, dynamic>{};
|
|
|
|
final l$provider = provider;
|
|
|
|
result$data['provider'] = toJson$Enum$BackupProvider(l$provider);
|
|
|
|
final l$locationId = locationId;
|
|
|
|
result$data['locationId'] = l$locationId;
|
|
|
|
final l$locationName = locationName;
|
|
|
|
result$data['locationName'] = l$locationName;
|
|
|
|
final l$login = login;
|
|
|
|
result$data['login'] = l$login;
|
|
|
|
final l$password = password;
|
|
|
|
result$data['password'] = l$password;
|
|
|
|
return result$data;
|
|
|
|
}
|
|
|
|
|
|
|
|
CopyWith$Input$InitializeRepositoryInput<Input$InitializeRepositoryInput>
|
|
|
|
get copyWith => CopyWith$Input$InitializeRepositoryInput(
|
|
|
|
this,
|
|
|
|
(i) => i,
|
|
|
|
);
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
if (identical(this, other)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(other is Input$InitializeRepositoryInput) ||
|
|
|
|
runtimeType != other.runtimeType) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
final l$provider = provider;
|
|
|
|
final lOther$provider = other.provider;
|
|
|
|
if (l$provider != lOther$provider) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
final l$locationId = locationId;
|
|
|
|
final lOther$locationId = other.locationId;
|
|
|
|
if (l$locationId != lOther$locationId) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
final l$locationName = locationName;
|
|
|
|
final lOther$locationName = other.locationName;
|
|
|
|
if (l$locationName != lOther$locationName) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
final l$login = login;
|
|
|
|
final lOther$login = other.login;
|
|
|
|
if (l$login != lOther$login) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
final l$password = password;
|
|
|
|
final lOther$password = other.password;
|
|
|
|
if (l$password != lOther$password) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
int get hashCode {
|
|
|
|
final l$provider = provider;
|
|
|
|
final l$locationId = locationId;
|
|
|
|
final l$locationName = locationName;
|
|
|
|
final l$login = login;
|
|
|
|
final l$password = password;
|
|
|
|
return Object.hashAll([
|
|
|
|
l$provider,
|
|
|
|
l$locationId,
|
|
|
|
l$locationName,
|
|
|
|
l$login,
|
|
|
|
l$password,
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
abstract class CopyWith$Input$InitializeRepositoryInput<TRes> {
|
|
|
|
factory CopyWith$Input$InitializeRepositoryInput(
|
|
|
|
Input$InitializeRepositoryInput instance,
|
|
|
|
TRes Function(Input$InitializeRepositoryInput) then,
|
|
|
|
) = _CopyWithImpl$Input$InitializeRepositoryInput;
|
|
|
|
|
|
|
|
factory CopyWith$Input$InitializeRepositoryInput.stub(TRes res) =
|
|
|
|
_CopyWithStubImpl$Input$InitializeRepositoryInput;
|
|
|
|
|
|
|
|
TRes call({
|
|
|
|
Enum$BackupProvider? provider,
|
|
|
|
String? locationId,
|
|
|
|
String? locationName,
|
|
|
|
String? login,
|
|
|
|
String? password,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithImpl$Input$InitializeRepositoryInput<TRes>
|
|
|
|
implements CopyWith$Input$InitializeRepositoryInput<TRes> {
|
|
|
|
_CopyWithImpl$Input$InitializeRepositoryInput(
|
|
|
|
this._instance,
|
|
|
|
this._then,
|
|
|
|
);
|
|
|
|
|
|
|
|
final Input$InitializeRepositoryInput _instance;
|
|
|
|
|
|
|
|
final TRes Function(Input$InitializeRepositoryInput) _then;
|
|
|
|
|
|
|
|
static const _undefined = <dynamic, dynamic>{};
|
|
|
|
|
|
|
|
TRes call({
|
|
|
|
Object? provider = _undefined,
|
|
|
|
Object? locationId = _undefined,
|
|
|
|
Object? locationName = _undefined,
|
|
|
|
Object? login = _undefined,
|
|
|
|
Object? password = _undefined,
|
|
|
|
}) =>
|
|
|
|
_then(Input$InitializeRepositoryInput._({
|
|
|
|
..._instance._$data,
|
|
|
|
if (provider != _undefined && provider != null)
|
|
|
|
'provider': (provider as Enum$BackupProvider),
|
|
|
|
if (locationId != _undefined && locationId != null)
|
|
|
|
'locationId': (locationId as String),
|
|
|
|
if (locationName != _undefined && locationName != null)
|
|
|
|
'locationName': (locationName as String),
|
|
|
|
if (login != _undefined && login != null) 'login': (login as String),
|
|
|
|
if (password != _undefined && password != null)
|
|
|
|
'password': (password as String),
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithStubImpl$Input$InitializeRepositoryInput<TRes>
|
|
|
|
implements CopyWith$Input$InitializeRepositoryInput<TRes> {
|
|
|
|
_CopyWithStubImpl$Input$InitializeRepositoryInput(this._res);
|
|
|
|
|
|
|
|
TRes _res;
|
|
|
|
|
|
|
|
call({
|
|
|
|
Enum$BackupProvider? provider,
|
|
|
|
String? locationId,
|
|
|
|
String? locationName,
|
|
|
|
String? login,
|
|
|
|
String? password,
|
|
|
|
}) =>
|
|
|
|
_res;
|
|
|
|
}
|
|
|
|
|
2022-08-24 05:35:49 +00:00
|
|
|
class Input$MigrateToBindsInput {
|
2023-02-24 10:44:55 +00:00
|
|
|
factory Input$MigrateToBindsInput({
|
|
|
|
required String emailBlockDevice,
|
|
|
|
required String bitwardenBlockDevice,
|
|
|
|
required String giteaBlockDevice,
|
|
|
|
required String nextcloudBlockDevice,
|
|
|
|
required String pleromaBlockDevice,
|
|
|
|
}) =>
|
|
|
|
Input$MigrateToBindsInput._({
|
|
|
|
r'emailBlockDevice': emailBlockDevice,
|
|
|
|
r'bitwardenBlockDevice': bitwardenBlockDevice,
|
|
|
|
r'giteaBlockDevice': giteaBlockDevice,
|
|
|
|
r'nextcloudBlockDevice': nextcloudBlockDevice,
|
|
|
|
r'pleromaBlockDevice': pleromaBlockDevice,
|
|
|
|
});
|
|
|
|
|
|
|
|
Input$MigrateToBindsInput._(this._$data);
|
|
|
|
|
|
|
|
factory Input$MigrateToBindsInput.fromJson(Map<String, dynamic> data) {
|
|
|
|
final result$data = <String, dynamic>{};
|
|
|
|
final l$emailBlockDevice = data['emailBlockDevice'];
|
|
|
|
result$data['emailBlockDevice'] = (l$emailBlockDevice as String);
|
|
|
|
final l$bitwardenBlockDevice = data['bitwardenBlockDevice'];
|
|
|
|
result$data['bitwardenBlockDevice'] = (l$bitwardenBlockDevice as String);
|
|
|
|
final l$giteaBlockDevice = data['giteaBlockDevice'];
|
|
|
|
result$data['giteaBlockDevice'] = (l$giteaBlockDevice as String);
|
|
|
|
final l$nextcloudBlockDevice = data['nextcloudBlockDevice'];
|
|
|
|
result$data['nextcloudBlockDevice'] = (l$nextcloudBlockDevice as String);
|
|
|
|
final l$pleromaBlockDevice = data['pleromaBlockDevice'];
|
|
|
|
result$data['pleromaBlockDevice'] = (l$pleromaBlockDevice as String);
|
|
|
|
return Input$MigrateToBindsInput._(result$data);
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
Map<String, dynamic> _$data;
|
2022-08-24 05:35:49 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
String get emailBlockDevice => (_$data['emailBlockDevice'] as String);
|
|
|
|
String get bitwardenBlockDevice => (_$data['bitwardenBlockDevice'] as String);
|
|
|
|
String get giteaBlockDevice => (_$data['giteaBlockDevice'] as String);
|
|
|
|
String get nextcloudBlockDevice => (_$data['nextcloudBlockDevice'] as String);
|
|
|
|
String get pleromaBlockDevice => (_$data['pleromaBlockDevice'] as String);
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final result$data = <String, dynamic>{};
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$emailBlockDevice = emailBlockDevice;
|
2023-02-24 10:44:55 +00:00
|
|
|
result$data['emailBlockDevice'] = l$emailBlockDevice;
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$bitwardenBlockDevice = bitwardenBlockDevice;
|
2023-02-24 10:44:55 +00:00
|
|
|
result$data['bitwardenBlockDevice'] = l$bitwardenBlockDevice;
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$giteaBlockDevice = giteaBlockDevice;
|
2023-02-24 10:44:55 +00:00
|
|
|
result$data['giteaBlockDevice'] = l$giteaBlockDevice;
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$nextcloudBlockDevice = nextcloudBlockDevice;
|
2023-02-24 10:44:55 +00:00
|
|
|
result$data['nextcloudBlockDevice'] = l$nextcloudBlockDevice;
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$pleromaBlockDevice = pleromaBlockDevice;
|
2023-02-24 10:44:55 +00:00
|
|
|
result$data['pleromaBlockDevice'] = l$pleromaBlockDevice;
|
|
|
|
return result$data;
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
CopyWith$Input$MigrateToBindsInput<Input$MigrateToBindsInput> get copyWith =>
|
|
|
|
CopyWith$Input$MigrateToBindsInput(
|
|
|
|
this,
|
|
|
|
(i) => i,
|
|
|
|
);
|
2022-08-24 05:35:49 +00:00
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
2023-02-24 10:44:55 +00:00
|
|
|
if (identical(this, other)) {
|
|
|
|
return true;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
if (!(other is Input$MigrateToBindsInput) ||
|
2023-02-24 10:44:55 +00:00
|
|
|
runtimeType != other.runtimeType) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$emailBlockDevice = emailBlockDevice;
|
|
|
|
final lOther$emailBlockDevice = other.emailBlockDevice;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (l$emailBlockDevice != lOther$emailBlockDevice) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$bitwardenBlockDevice = bitwardenBlockDevice;
|
|
|
|
final lOther$bitwardenBlockDevice = other.bitwardenBlockDevice;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (l$bitwardenBlockDevice != lOther$bitwardenBlockDevice) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$giteaBlockDevice = giteaBlockDevice;
|
|
|
|
final lOther$giteaBlockDevice = other.giteaBlockDevice;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (l$giteaBlockDevice != lOther$giteaBlockDevice) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$nextcloudBlockDevice = nextcloudBlockDevice;
|
|
|
|
final lOther$nextcloudBlockDevice = other.nextcloudBlockDevice;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (l$nextcloudBlockDevice != lOther$nextcloudBlockDevice) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$pleromaBlockDevice = pleromaBlockDevice;
|
|
|
|
final lOther$pleromaBlockDevice = other.pleromaBlockDevice;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (l$pleromaBlockDevice != lOther$pleromaBlockDevice) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
@override
|
|
|
|
int get hashCode {
|
|
|
|
final l$emailBlockDevice = emailBlockDevice;
|
|
|
|
final l$bitwardenBlockDevice = bitwardenBlockDevice;
|
|
|
|
final l$giteaBlockDevice = giteaBlockDevice;
|
|
|
|
final l$nextcloudBlockDevice = nextcloudBlockDevice;
|
|
|
|
final l$pleromaBlockDevice = pleromaBlockDevice;
|
|
|
|
return Object.hashAll([
|
|
|
|
l$emailBlockDevice,
|
|
|
|
l$bitwardenBlockDevice,
|
|
|
|
l$giteaBlockDevice,
|
|
|
|
l$nextcloudBlockDevice,
|
|
|
|
l$pleromaBlockDevice,
|
|
|
|
]);
|
|
|
|
}
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
abstract class CopyWith$Input$MigrateToBindsInput<TRes> {
|
2023-02-24 10:44:55 +00:00
|
|
|
factory CopyWith$Input$MigrateToBindsInput(
|
|
|
|
Input$MigrateToBindsInput instance,
|
|
|
|
TRes Function(Input$MigrateToBindsInput) then,
|
|
|
|
) = _CopyWithImpl$Input$MigrateToBindsInput;
|
2022-08-29 18:18:07 +00:00
|
|
|
|
|
|
|
factory CopyWith$Input$MigrateToBindsInput.stub(TRes res) =
|
|
|
|
_CopyWithStubImpl$Input$MigrateToBindsInput;
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
TRes call({
|
|
|
|
String? emailBlockDevice,
|
|
|
|
String? bitwardenBlockDevice,
|
|
|
|
String? giteaBlockDevice,
|
|
|
|
String? nextcloudBlockDevice,
|
|
|
|
String? pleromaBlockDevice,
|
|
|
|
});
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithImpl$Input$MigrateToBindsInput<TRes>
|
|
|
|
implements CopyWith$Input$MigrateToBindsInput<TRes> {
|
2023-02-24 10:44:55 +00:00
|
|
|
_CopyWithImpl$Input$MigrateToBindsInput(
|
|
|
|
this._instance,
|
|
|
|
this._then,
|
|
|
|
);
|
2022-08-29 18:18:07 +00:00
|
|
|
|
|
|
|
final Input$MigrateToBindsInput _instance;
|
|
|
|
|
|
|
|
final TRes Function(Input$MigrateToBindsInput) _then;
|
|
|
|
|
2023-05-30 17:25:46 +00:00
|
|
|
static const _undefined = <dynamic, dynamic>{};
|
2022-08-29 18:18:07 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
TRes call({
|
|
|
|
Object? emailBlockDevice = _undefined,
|
|
|
|
Object? bitwardenBlockDevice = _undefined,
|
|
|
|
Object? giteaBlockDevice = _undefined,
|
|
|
|
Object? nextcloudBlockDevice = _undefined,
|
|
|
|
Object? pleromaBlockDevice = _undefined,
|
|
|
|
}) =>
|
|
|
|
_then(Input$MigrateToBindsInput._({
|
|
|
|
..._instance._$data,
|
|
|
|
if (emailBlockDevice != _undefined && emailBlockDevice != null)
|
|
|
|
'emailBlockDevice': (emailBlockDevice as String),
|
|
|
|
if (bitwardenBlockDevice != _undefined && bitwardenBlockDevice != null)
|
|
|
|
'bitwardenBlockDevice': (bitwardenBlockDevice as String),
|
|
|
|
if (giteaBlockDevice != _undefined && giteaBlockDevice != null)
|
|
|
|
'giteaBlockDevice': (giteaBlockDevice as String),
|
|
|
|
if (nextcloudBlockDevice != _undefined && nextcloudBlockDevice != null)
|
|
|
|
'nextcloudBlockDevice': (nextcloudBlockDevice as String),
|
|
|
|
if (pleromaBlockDevice != _undefined && pleromaBlockDevice != null)
|
|
|
|
'pleromaBlockDevice': (pleromaBlockDevice as String),
|
|
|
|
}));
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithStubImpl$Input$MigrateToBindsInput<TRes>
|
|
|
|
implements CopyWith$Input$MigrateToBindsInput<TRes> {
|
|
|
|
_CopyWithStubImpl$Input$MigrateToBindsInput(this._res);
|
|
|
|
|
|
|
|
TRes _res;
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
call({
|
|
|
|
String? emailBlockDevice,
|
|
|
|
String? bitwardenBlockDevice,
|
|
|
|
String? giteaBlockDevice,
|
|
|
|
String? nextcloudBlockDevice,
|
|
|
|
String? pleromaBlockDevice,
|
|
|
|
}) =>
|
2022-08-29 18:18:07 +00:00
|
|
|
_res;
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class Input$MoveServiceInput {
|
2023-02-24 10:44:55 +00:00
|
|
|
factory Input$MoveServiceInput({
|
|
|
|
required String serviceId,
|
|
|
|
required String location,
|
|
|
|
}) =>
|
|
|
|
Input$MoveServiceInput._({
|
|
|
|
r'serviceId': serviceId,
|
|
|
|
r'location': location,
|
|
|
|
});
|
|
|
|
|
|
|
|
Input$MoveServiceInput._(this._$data);
|
|
|
|
|
|
|
|
factory Input$MoveServiceInput.fromJson(Map<String, dynamic> data) {
|
|
|
|
final result$data = <String, dynamic>{};
|
|
|
|
final l$serviceId = data['serviceId'];
|
|
|
|
result$data['serviceId'] = (l$serviceId as String);
|
|
|
|
final l$location = data['location'];
|
|
|
|
result$data['location'] = (l$location as String);
|
|
|
|
return Input$MoveServiceInput._(result$data);
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
Map<String, dynamic> _$data;
|
2022-08-24 05:35:49 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
String get serviceId => (_$data['serviceId'] as String);
|
|
|
|
String get location => (_$data['location'] as String);
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final result$data = <String, dynamic>{};
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$serviceId = serviceId;
|
2023-02-24 10:44:55 +00:00
|
|
|
result$data['serviceId'] = l$serviceId;
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$location = location;
|
2023-02-24 10:44:55 +00:00
|
|
|
result$data['location'] = l$location;
|
|
|
|
return result$data;
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
CopyWith$Input$MoveServiceInput<Input$MoveServiceInput> get copyWith =>
|
|
|
|
CopyWith$Input$MoveServiceInput(
|
|
|
|
this,
|
|
|
|
(i) => i,
|
|
|
|
);
|
2022-08-24 05:35:49 +00:00
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
2023-02-24 10:44:55 +00:00
|
|
|
if (identical(this, other)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(other is Input$MoveServiceInput) ||
|
|
|
|
runtimeType != other.runtimeType) {
|
2022-08-24 05:35:49 +00:00
|
|
|
return false;
|
2023-02-24 10:44:55 +00:00
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$serviceId = serviceId;
|
|
|
|
final lOther$serviceId = other.serviceId;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (l$serviceId != lOther$serviceId) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$location = location;
|
|
|
|
final lOther$location = other.location;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (l$location != lOther$location) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
@override
|
|
|
|
int get hashCode {
|
|
|
|
final l$serviceId = serviceId;
|
|
|
|
final l$location = location;
|
|
|
|
return Object.hashAll([
|
|
|
|
l$serviceId,
|
|
|
|
l$location,
|
|
|
|
]);
|
|
|
|
}
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
abstract class CopyWith$Input$MoveServiceInput<TRes> {
|
2023-02-24 10:44:55 +00:00
|
|
|
factory CopyWith$Input$MoveServiceInput(
|
|
|
|
Input$MoveServiceInput instance,
|
|
|
|
TRes Function(Input$MoveServiceInput) then,
|
|
|
|
) = _CopyWithImpl$Input$MoveServiceInput;
|
2022-08-29 18:18:07 +00:00
|
|
|
|
|
|
|
factory CopyWith$Input$MoveServiceInput.stub(TRes res) =
|
|
|
|
_CopyWithStubImpl$Input$MoveServiceInput;
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
TRes call({
|
|
|
|
String? serviceId,
|
|
|
|
String? location,
|
|
|
|
});
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithImpl$Input$MoveServiceInput<TRes>
|
|
|
|
implements CopyWith$Input$MoveServiceInput<TRes> {
|
2023-02-24 10:44:55 +00:00
|
|
|
_CopyWithImpl$Input$MoveServiceInput(
|
|
|
|
this._instance,
|
|
|
|
this._then,
|
|
|
|
);
|
2022-08-29 18:18:07 +00:00
|
|
|
|
|
|
|
final Input$MoveServiceInput _instance;
|
|
|
|
|
|
|
|
final TRes Function(Input$MoveServiceInput) _then;
|
|
|
|
|
2023-05-30 17:25:46 +00:00
|
|
|
static const _undefined = <dynamic, dynamic>{};
|
2022-08-29 18:18:07 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
TRes call({
|
|
|
|
Object? serviceId = _undefined,
|
|
|
|
Object? location = _undefined,
|
|
|
|
}) =>
|
|
|
|
_then(Input$MoveServiceInput._({
|
|
|
|
..._instance._$data,
|
|
|
|
if (serviceId != _undefined && serviceId != null)
|
|
|
|
'serviceId': (serviceId as String),
|
|
|
|
if (location != _undefined && location != null)
|
|
|
|
'location': (location as String),
|
|
|
|
}));
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithStubImpl$Input$MoveServiceInput<TRes>
|
|
|
|
implements CopyWith$Input$MoveServiceInput<TRes> {
|
|
|
|
_CopyWithStubImpl$Input$MoveServiceInput(this._res);
|
|
|
|
|
|
|
|
TRes _res;
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
call({
|
|
|
|
String? serviceId,
|
|
|
|
String? location,
|
|
|
|
}) =>
|
|
|
|
_res;
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
2022-07-25 14:06:55 +00:00
|
|
|
class Input$RecoveryKeyLimitsInput {
|
2023-02-24 10:44:55 +00:00
|
|
|
factory Input$RecoveryKeyLimitsInput({
|
|
|
|
DateTime? expirationDate,
|
|
|
|
int? uses,
|
|
|
|
}) =>
|
|
|
|
Input$RecoveryKeyLimitsInput._({
|
|
|
|
if (expirationDate != null) r'expirationDate': expirationDate,
|
|
|
|
if (uses != null) r'uses': uses,
|
|
|
|
});
|
|
|
|
|
|
|
|
Input$RecoveryKeyLimitsInput._(this._$data);
|
|
|
|
|
|
|
|
factory Input$RecoveryKeyLimitsInput.fromJson(Map<String, dynamic> data) {
|
|
|
|
final result$data = <String, dynamic>{};
|
|
|
|
if (data.containsKey('expirationDate')) {
|
|
|
|
final l$expirationDate = data['expirationDate'];
|
|
|
|
result$data['expirationDate'] =
|
|
|
|
l$expirationDate == null ? null : dateTimeFromJson(l$expirationDate);
|
|
|
|
}
|
|
|
|
if (data.containsKey('uses')) {
|
|
|
|
final l$uses = data['uses'];
|
|
|
|
result$data['uses'] = (l$uses as int?);
|
|
|
|
}
|
|
|
|
return Input$RecoveryKeyLimitsInput._(result$data);
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
Map<String, dynamic> _$data;
|
|
|
|
|
|
|
|
DateTime? get expirationDate => (_$data['expirationDate'] as DateTime?);
|
|
|
|
int? get uses => (_$data['uses'] as int?);
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final result$data = <String, dynamic>{};
|
|
|
|
if (_$data.containsKey('expirationDate')) {
|
|
|
|
final l$expirationDate = expirationDate;
|
|
|
|
result$data['expirationDate'] =
|
|
|
|
l$expirationDate == null ? null : dateTimeToJson(l$expirationDate);
|
|
|
|
}
|
|
|
|
if (_$data.containsKey('uses')) {
|
|
|
|
final l$uses = uses;
|
|
|
|
result$data['uses'] = l$uses;
|
|
|
|
}
|
|
|
|
return result$data;
|
2022-07-25 14:06:55 +00:00
|
|
|
}
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
CopyWith$Input$RecoveryKeyLimitsInput<Input$RecoveryKeyLimitsInput>
|
|
|
|
get copyWith => CopyWith$Input$RecoveryKeyLimitsInput(
|
|
|
|
this,
|
|
|
|
(i) => i,
|
|
|
|
);
|
2022-07-25 14:06:55 +00:00
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
2023-02-24 10:44:55 +00:00
|
|
|
if (identical(this, other)) {
|
|
|
|
return true;
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
if (!(other is Input$RecoveryKeyLimitsInput) ||
|
2023-02-24 10:44:55 +00:00
|
|
|
runtimeType != other.runtimeType) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
final l$expirationDate = expirationDate;
|
|
|
|
final lOther$expirationDate = other.expirationDate;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (_$data.containsKey('expirationDate') !=
|
|
|
|
other._$data.containsKey('expirationDate')) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if (l$expirationDate != lOther$expirationDate) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
final l$uses = uses;
|
|
|
|
final lOther$uses = other.uses;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (_$data.containsKey('uses') != other._$data.containsKey('uses')) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if (l$uses != lOther$uses) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
@override
|
|
|
|
int get hashCode {
|
|
|
|
final l$expirationDate = expirationDate;
|
|
|
|
final l$uses = uses;
|
|
|
|
return Object.hashAll([
|
|
|
|
_$data.containsKey('expirationDate') ? l$expirationDate : const {},
|
|
|
|
_$data.containsKey('uses') ? l$uses : const {},
|
|
|
|
]);
|
|
|
|
}
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
abstract class CopyWith$Input$RecoveryKeyLimitsInput<TRes> {
|
|
|
|
factory CopyWith$Input$RecoveryKeyLimitsInput(
|
2023-02-24 10:44:55 +00:00
|
|
|
Input$RecoveryKeyLimitsInput instance,
|
|
|
|
TRes Function(Input$RecoveryKeyLimitsInput) then,
|
|
|
|
) = _CopyWithImpl$Input$RecoveryKeyLimitsInput;
|
2022-08-29 18:18:07 +00:00
|
|
|
|
|
|
|
factory CopyWith$Input$RecoveryKeyLimitsInput.stub(TRes res) =
|
|
|
|
_CopyWithStubImpl$Input$RecoveryKeyLimitsInput;
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
TRes call({
|
|
|
|
DateTime? expirationDate,
|
|
|
|
int? uses,
|
|
|
|
});
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithImpl$Input$RecoveryKeyLimitsInput<TRes>
|
|
|
|
implements CopyWith$Input$RecoveryKeyLimitsInput<TRes> {
|
2023-02-24 10:44:55 +00:00
|
|
|
_CopyWithImpl$Input$RecoveryKeyLimitsInput(
|
|
|
|
this._instance,
|
|
|
|
this._then,
|
|
|
|
);
|
2022-08-29 18:18:07 +00:00
|
|
|
|
|
|
|
final Input$RecoveryKeyLimitsInput _instance;
|
|
|
|
|
|
|
|
final TRes Function(Input$RecoveryKeyLimitsInput) _then;
|
|
|
|
|
2023-05-30 17:25:46 +00:00
|
|
|
static const _undefined = <dynamic, dynamic>{};
|
2022-08-29 18:18:07 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
TRes call({
|
|
|
|
Object? expirationDate = _undefined,
|
|
|
|
Object? uses = _undefined,
|
|
|
|
}) =>
|
|
|
|
_then(Input$RecoveryKeyLimitsInput._({
|
|
|
|
..._instance._$data,
|
|
|
|
if (expirationDate != _undefined)
|
|
|
|
'expirationDate': (expirationDate as DateTime?),
|
|
|
|
if (uses != _undefined) 'uses': (uses as int?),
|
|
|
|
}));
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithStubImpl$Input$RecoveryKeyLimitsInput<TRes>
|
|
|
|
implements CopyWith$Input$RecoveryKeyLimitsInput<TRes> {
|
|
|
|
_CopyWithStubImpl$Input$RecoveryKeyLimitsInput(this._res);
|
|
|
|
|
|
|
|
TRes _res;
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
call({
|
|
|
|
DateTime? expirationDate,
|
|
|
|
int? uses,
|
|
|
|
}) =>
|
|
|
|
_res;
|
2022-07-25 14:06:55 +00:00
|
|
|
}
|
|
|
|
|
2022-08-24 05:35:49 +00:00
|
|
|
class Input$SshMutationInput {
|
2023-02-24 10:44:55 +00:00
|
|
|
factory Input$SshMutationInput({
|
|
|
|
required String username,
|
|
|
|
required String sshKey,
|
|
|
|
}) =>
|
|
|
|
Input$SshMutationInput._({
|
|
|
|
r'username': username,
|
|
|
|
r'sshKey': sshKey,
|
|
|
|
});
|
|
|
|
|
|
|
|
Input$SshMutationInput._(this._$data);
|
|
|
|
|
|
|
|
factory Input$SshMutationInput.fromJson(Map<String, dynamic> data) {
|
|
|
|
final result$data = <String, dynamic>{};
|
|
|
|
final l$username = data['username'];
|
|
|
|
result$data['username'] = (l$username as String);
|
|
|
|
final l$sshKey = data['sshKey'];
|
|
|
|
result$data['sshKey'] = (l$sshKey as String);
|
|
|
|
return Input$SshMutationInput._(result$data);
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
Map<String, dynamic> _$data;
|
2022-07-25 14:06:55 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
String get username => (_$data['username'] as String);
|
|
|
|
String get sshKey => (_$data['sshKey'] as String);
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final result$data = <String, dynamic>{};
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$username = username;
|
2023-02-24 10:44:55 +00:00
|
|
|
result$data['username'] = l$username;
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$sshKey = sshKey;
|
2023-02-24 10:44:55 +00:00
|
|
|
result$data['sshKey'] = l$sshKey;
|
|
|
|
return result$data;
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
CopyWith$Input$SshMutationInput<Input$SshMutationInput> get copyWith =>
|
|
|
|
CopyWith$Input$SshMutationInput(
|
|
|
|
this,
|
|
|
|
(i) => i,
|
|
|
|
);
|
2022-08-24 05:35:49 +00:00
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
2023-02-24 10:44:55 +00:00
|
|
|
if (identical(this, other)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(other is Input$SshMutationInput) ||
|
|
|
|
runtimeType != other.runtimeType) {
|
2022-08-24 05:35:49 +00:00
|
|
|
return false;
|
2023-02-24 10:44:55 +00:00
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$username = username;
|
|
|
|
final lOther$username = other.username;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (l$username != lOther$username) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$sshKey = sshKey;
|
|
|
|
final lOther$sshKey = other.sshKey;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (l$sshKey != lOther$sshKey) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
return true;
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
@override
|
|
|
|
int get hashCode {
|
|
|
|
final l$username = username;
|
|
|
|
final l$sshKey = sshKey;
|
|
|
|
return Object.hashAll([
|
|
|
|
l$username,
|
|
|
|
l$sshKey,
|
|
|
|
]);
|
|
|
|
}
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
abstract class CopyWith$Input$SshMutationInput<TRes> {
|
2023-02-24 10:44:55 +00:00
|
|
|
factory CopyWith$Input$SshMutationInput(
|
|
|
|
Input$SshMutationInput instance,
|
|
|
|
TRes Function(Input$SshMutationInput) then,
|
|
|
|
) = _CopyWithImpl$Input$SshMutationInput;
|
2022-08-29 18:18:07 +00:00
|
|
|
|
|
|
|
factory CopyWith$Input$SshMutationInput.stub(TRes res) =
|
|
|
|
_CopyWithStubImpl$Input$SshMutationInput;
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
TRes call({
|
|
|
|
String? username,
|
|
|
|
String? sshKey,
|
|
|
|
});
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithImpl$Input$SshMutationInput<TRes>
|
|
|
|
implements CopyWith$Input$SshMutationInput<TRes> {
|
2023-02-24 10:44:55 +00:00
|
|
|
_CopyWithImpl$Input$SshMutationInput(
|
|
|
|
this._instance,
|
|
|
|
this._then,
|
|
|
|
);
|
2022-08-29 18:18:07 +00:00
|
|
|
|
|
|
|
final Input$SshMutationInput _instance;
|
|
|
|
|
|
|
|
final TRes Function(Input$SshMutationInput) _then;
|
|
|
|
|
2023-05-30 17:25:46 +00:00
|
|
|
static const _undefined = <dynamic, dynamic>{};
|
2022-08-29 18:18:07 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
TRes call({
|
|
|
|
Object? username = _undefined,
|
|
|
|
Object? sshKey = _undefined,
|
|
|
|
}) =>
|
|
|
|
_then(Input$SshMutationInput._({
|
|
|
|
..._instance._$data,
|
|
|
|
if (username != _undefined && username != null)
|
|
|
|
'username': (username as String),
|
|
|
|
if (sshKey != _undefined && sshKey != null)
|
|
|
|
'sshKey': (sshKey as String),
|
|
|
|
}));
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithStubImpl$Input$SshMutationInput<TRes>
|
|
|
|
implements CopyWith$Input$SshMutationInput<TRes> {
|
|
|
|
_CopyWithStubImpl$Input$SshMutationInput(this._res);
|
|
|
|
|
|
|
|
TRes _res;
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
call({
|
|
|
|
String? username,
|
|
|
|
String? sshKey,
|
|
|
|
}) =>
|
|
|
|
_res;
|
2022-07-25 14:06:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class Input$UseNewDeviceKeyInput {
|
2023-02-24 10:44:55 +00:00
|
|
|
factory Input$UseNewDeviceKeyInput({
|
|
|
|
required String key,
|
|
|
|
required String deviceName,
|
|
|
|
}) =>
|
|
|
|
Input$UseNewDeviceKeyInput._({
|
|
|
|
r'key': key,
|
|
|
|
r'deviceName': deviceName,
|
|
|
|
});
|
|
|
|
|
|
|
|
Input$UseNewDeviceKeyInput._(this._$data);
|
|
|
|
|
|
|
|
factory Input$UseNewDeviceKeyInput.fromJson(Map<String, dynamic> data) {
|
|
|
|
final result$data = <String, dynamic>{};
|
|
|
|
final l$key = data['key'];
|
|
|
|
result$data['key'] = (l$key as String);
|
|
|
|
final l$deviceName = data['deviceName'];
|
|
|
|
result$data['deviceName'] = (l$deviceName as String);
|
|
|
|
return Input$UseNewDeviceKeyInput._(result$data);
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
Map<String, dynamic> _$data;
|
2022-07-25 14:06:55 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
String get key => (_$data['key'] as String);
|
|
|
|
String get deviceName => (_$data['deviceName'] as String);
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final result$data = <String, dynamic>{};
|
2022-07-25 14:06:55 +00:00
|
|
|
final l$key = key;
|
2023-02-24 10:44:55 +00:00
|
|
|
result$data['key'] = l$key;
|
2022-07-25 14:06:55 +00:00
|
|
|
final l$deviceName = deviceName;
|
2023-02-24 10:44:55 +00:00
|
|
|
result$data['deviceName'] = l$deviceName;
|
|
|
|
return result$data;
|
2022-07-25 14:06:55 +00:00
|
|
|
}
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
CopyWith$Input$UseNewDeviceKeyInput<Input$UseNewDeviceKeyInput>
|
|
|
|
get copyWith => CopyWith$Input$UseNewDeviceKeyInput(
|
|
|
|
this,
|
|
|
|
(i) => i,
|
|
|
|
);
|
2022-07-25 14:06:55 +00:00
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
2023-02-24 10:44:55 +00:00
|
|
|
if (identical(this, other)) {
|
|
|
|
return true;
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
if (!(other is Input$UseNewDeviceKeyInput) ||
|
2023-02-24 10:44:55 +00:00
|
|
|
runtimeType != other.runtimeType) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
final l$key = key;
|
|
|
|
final lOther$key = other.key;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (l$key != lOther$key) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
final l$deviceName = deviceName;
|
|
|
|
final lOther$deviceName = other.deviceName;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (l$deviceName != lOther$deviceName) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
@override
|
|
|
|
int get hashCode {
|
|
|
|
final l$key = key;
|
|
|
|
final l$deviceName = deviceName;
|
|
|
|
return Object.hashAll([
|
|
|
|
l$key,
|
|
|
|
l$deviceName,
|
|
|
|
]);
|
|
|
|
}
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
abstract class CopyWith$Input$UseNewDeviceKeyInput<TRes> {
|
|
|
|
factory CopyWith$Input$UseNewDeviceKeyInput(
|
2023-02-24 10:44:55 +00:00
|
|
|
Input$UseNewDeviceKeyInput instance,
|
|
|
|
TRes Function(Input$UseNewDeviceKeyInput) then,
|
|
|
|
) = _CopyWithImpl$Input$UseNewDeviceKeyInput;
|
2022-08-29 18:18:07 +00:00
|
|
|
|
|
|
|
factory CopyWith$Input$UseNewDeviceKeyInput.stub(TRes res) =
|
|
|
|
_CopyWithStubImpl$Input$UseNewDeviceKeyInput;
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
TRes call({
|
|
|
|
String? key,
|
|
|
|
String? deviceName,
|
|
|
|
});
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithImpl$Input$UseNewDeviceKeyInput<TRes>
|
|
|
|
implements CopyWith$Input$UseNewDeviceKeyInput<TRes> {
|
2023-02-24 10:44:55 +00:00
|
|
|
_CopyWithImpl$Input$UseNewDeviceKeyInput(
|
|
|
|
this._instance,
|
|
|
|
this._then,
|
|
|
|
);
|
2022-08-29 18:18:07 +00:00
|
|
|
|
|
|
|
final Input$UseNewDeviceKeyInput _instance;
|
|
|
|
|
|
|
|
final TRes Function(Input$UseNewDeviceKeyInput) _then;
|
|
|
|
|
2023-05-30 17:25:46 +00:00
|
|
|
static const _undefined = <dynamic, dynamic>{};
|
2022-08-29 18:18:07 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
TRes call({
|
|
|
|
Object? key = _undefined,
|
|
|
|
Object? deviceName = _undefined,
|
|
|
|
}) =>
|
|
|
|
_then(Input$UseNewDeviceKeyInput._({
|
|
|
|
..._instance._$data,
|
|
|
|
if (key != _undefined && key != null) 'key': (key as String),
|
|
|
|
if (deviceName != _undefined && deviceName != null)
|
|
|
|
'deviceName': (deviceName as String),
|
|
|
|
}));
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithStubImpl$Input$UseNewDeviceKeyInput<TRes>
|
|
|
|
implements CopyWith$Input$UseNewDeviceKeyInput<TRes> {
|
|
|
|
_CopyWithStubImpl$Input$UseNewDeviceKeyInput(this._res);
|
|
|
|
|
|
|
|
TRes _res;
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
call({
|
|
|
|
String? key,
|
|
|
|
String? deviceName,
|
|
|
|
}) =>
|
|
|
|
_res;
|
2022-07-25 14:06:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class Input$UseRecoveryKeyInput {
|
2023-02-24 10:44:55 +00:00
|
|
|
factory Input$UseRecoveryKeyInput({
|
|
|
|
required String key,
|
|
|
|
required String deviceName,
|
|
|
|
}) =>
|
|
|
|
Input$UseRecoveryKeyInput._({
|
|
|
|
r'key': key,
|
|
|
|
r'deviceName': deviceName,
|
|
|
|
});
|
|
|
|
|
|
|
|
Input$UseRecoveryKeyInput._(this._$data);
|
|
|
|
|
|
|
|
factory Input$UseRecoveryKeyInput.fromJson(Map<String, dynamic> data) {
|
|
|
|
final result$data = <String, dynamic>{};
|
|
|
|
final l$key = data['key'];
|
|
|
|
result$data['key'] = (l$key as String);
|
|
|
|
final l$deviceName = data['deviceName'];
|
|
|
|
result$data['deviceName'] = (l$deviceName as String);
|
|
|
|
return Input$UseRecoveryKeyInput._(result$data);
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
Map<String, dynamic> _$data;
|
2022-07-25 14:06:55 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
String get key => (_$data['key'] as String);
|
|
|
|
String get deviceName => (_$data['deviceName'] as String);
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final result$data = <String, dynamic>{};
|
2022-07-25 14:06:55 +00:00
|
|
|
final l$key = key;
|
2023-02-24 10:44:55 +00:00
|
|
|
result$data['key'] = l$key;
|
2022-07-25 14:06:55 +00:00
|
|
|
final l$deviceName = deviceName;
|
2023-02-24 10:44:55 +00:00
|
|
|
result$data['deviceName'] = l$deviceName;
|
|
|
|
return result$data;
|
2022-07-25 14:06:55 +00:00
|
|
|
}
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
CopyWith$Input$UseRecoveryKeyInput<Input$UseRecoveryKeyInput> get copyWith =>
|
|
|
|
CopyWith$Input$UseRecoveryKeyInput(
|
|
|
|
this,
|
|
|
|
(i) => i,
|
|
|
|
);
|
2022-07-25 14:06:55 +00:00
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
2023-02-24 10:44:55 +00:00
|
|
|
if (identical(this, other)) {
|
|
|
|
return true;
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
if (!(other is Input$UseRecoveryKeyInput) ||
|
2023-02-24 10:44:55 +00:00
|
|
|
runtimeType != other.runtimeType) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
final l$key = key;
|
|
|
|
final lOther$key = other.key;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (l$key != lOther$key) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
final l$deviceName = deviceName;
|
|
|
|
final lOther$deviceName = other.deviceName;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (l$deviceName != lOther$deviceName) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
@override
|
|
|
|
int get hashCode {
|
|
|
|
final l$key = key;
|
|
|
|
final l$deviceName = deviceName;
|
|
|
|
return Object.hashAll([
|
|
|
|
l$key,
|
|
|
|
l$deviceName,
|
|
|
|
]);
|
|
|
|
}
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
abstract class CopyWith$Input$UseRecoveryKeyInput<TRes> {
|
2023-02-24 10:44:55 +00:00
|
|
|
factory CopyWith$Input$UseRecoveryKeyInput(
|
|
|
|
Input$UseRecoveryKeyInput instance,
|
|
|
|
TRes Function(Input$UseRecoveryKeyInput) then,
|
|
|
|
) = _CopyWithImpl$Input$UseRecoveryKeyInput;
|
2022-08-29 18:18:07 +00:00
|
|
|
|
|
|
|
factory CopyWith$Input$UseRecoveryKeyInput.stub(TRes res) =
|
|
|
|
_CopyWithStubImpl$Input$UseRecoveryKeyInput;
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
TRes call({
|
|
|
|
String? key,
|
|
|
|
String? deviceName,
|
|
|
|
});
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithImpl$Input$UseRecoveryKeyInput<TRes>
|
|
|
|
implements CopyWith$Input$UseRecoveryKeyInput<TRes> {
|
2023-02-24 10:44:55 +00:00
|
|
|
_CopyWithImpl$Input$UseRecoveryKeyInput(
|
|
|
|
this._instance,
|
|
|
|
this._then,
|
|
|
|
);
|
2022-08-29 18:18:07 +00:00
|
|
|
|
|
|
|
final Input$UseRecoveryKeyInput _instance;
|
|
|
|
|
|
|
|
final TRes Function(Input$UseRecoveryKeyInput) _then;
|
|
|
|
|
2023-05-30 17:25:46 +00:00
|
|
|
static const _undefined = <dynamic, dynamic>{};
|
2022-08-29 18:18:07 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
TRes call({
|
|
|
|
Object? key = _undefined,
|
|
|
|
Object? deviceName = _undefined,
|
|
|
|
}) =>
|
|
|
|
_then(Input$UseRecoveryKeyInput._({
|
|
|
|
..._instance._$data,
|
|
|
|
if (key != _undefined && key != null) 'key': (key as String),
|
|
|
|
if (deviceName != _undefined && deviceName != null)
|
|
|
|
'deviceName': (deviceName as String),
|
|
|
|
}));
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithStubImpl$Input$UseRecoveryKeyInput<TRes>
|
|
|
|
implements CopyWith$Input$UseRecoveryKeyInput<TRes> {
|
|
|
|
_CopyWithStubImpl$Input$UseRecoveryKeyInput(this._res);
|
|
|
|
|
|
|
|
TRes _res;
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
call({
|
|
|
|
String? key,
|
|
|
|
String? deviceName,
|
|
|
|
}) =>
|
|
|
|
_res;
|
2022-07-25 14:06:55 +00:00
|
|
|
}
|
|
|
|
|
2022-08-24 05:35:49 +00:00
|
|
|
class Input$UserMutationInput {
|
2023-02-24 10:44:55 +00:00
|
|
|
factory Input$UserMutationInput({
|
|
|
|
required String username,
|
|
|
|
required String password,
|
|
|
|
}) =>
|
|
|
|
Input$UserMutationInput._({
|
|
|
|
r'username': username,
|
|
|
|
r'password': password,
|
|
|
|
});
|
|
|
|
|
|
|
|
Input$UserMutationInput._(this._$data);
|
|
|
|
|
|
|
|
factory Input$UserMutationInput.fromJson(Map<String, dynamic> data) {
|
|
|
|
final result$data = <String, dynamic>{};
|
|
|
|
final l$username = data['username'];
|
|
|
|
result$data['username'] = (l$username as String);
|
|
|
|
final l$password = data['password'];
|
|
|
|
result$data['password'] = (l$password as String);
|
|
|
|
return Input$UserMutationInput._(result$data);
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
Map<String, dynamic> _$data;
|
2022-07-25 14:06:55 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
String get username => (_$data['username'] as String);
|
|
|
|
String get password => (_$data['password'] as String);
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final result$data = <String, dynamic>{};
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$username = username;
|
2023-02-24 10:44:55 +00:00
|
|
|
result$data['username'] = l$username;
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$password = password;
|
2023-02-24 10:44:55 +00:00
|
|
|
result$data['password'] = l$password;
|
|
|
|
return result$data;
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
CopyWith$Input$UserMutationInput<Input$UserMutationInput> get copyWith =>
|
|
|
|
CopyWith$Input$UserMutationInput(
|
|
|
|
this,
|
|
|
|
(i) => i,
|
|
|
|
);
|
2022-08-24 05:35:49 +00:00
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
2023-02-24 10:44:55 +00:00
|
|
|
if (identical(this, other)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(other is Input$UserMutationInput) ||
|
|
|
|
runtimeType != other.runtimeType) {
|
2022-08-24 05:35:49 +00:00
|
|
|
return false;
|
2023-02-24 10:44:55 +00:00
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$username = username;
|
|
|
|
final lOther$username = other.username;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (l$username != lOther$username) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
final l$password = password;
|
|
|
|
final lOther$password = other.password;
|
2023-02-24 10:44:55 +00:00
|
|
|
if (l$password != lOther$password) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
return true;
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
@override
|
|
|
|
int get hashCode {
|
|
|
|
final l$username = username;
|
|
|
|
final l$password = password;
|
|
|
|
return Object.hashAll([
|
|
|
|
l$username,
|
|
|
|
l$password,
|
|
|
|
]);
|
|
|
|
}
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
abstract class CopyWith$Input$UserMutationInput<TRes> {
|
2023-02-24 10:44:55 +00:00
|
|
|
factory CopyWith$Input$UserMutationInput(
|
|
|
|
Input$UserMutationInput instance,
|
|
|
|
TRes Function(Input$UserMutationInput) then,
|
|
|
|
) = _CopyWithImpl$Input$UserMutationInput;
|
2022-08-29 18:18:07 +00:00
|
|
|
|
|
|
|
factory CopyWith$Input$UserMutationInput.stub(TRes res) =
|
|
|
|
_CopyWithStubImpl$Input$UserMutationInput;
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
TRes call({
|
|
|
|
String? username,
|
|
|
|
String? password,
|
|
|
|
});
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithImpl$Input$UserMutationInput<TRes>
|
|
|
|
implements CopyWith$Input$UserMutationInput<TRes> {
|
2023-02-24 10:44:55 +00:00
|
|
|
_CopyWithImpl$Input$UserMutationInput(
|
|
|
|
this._instance,
|
|
|
|
this._then,
|
|
|
|
);
|
2022-08-29 18:18:07 +00:00
|
|
|
|
|
|
|
final Input$UserMutationInput _instance;
|
|
|
|
|
|
|
|
final TRes Function(Input$UserMutationInput) _then;
|
|
|
|
|
2023-05-30 17:25:46 +00:00
|
|
|
static const _undefined = <dynamic, dynamic>{};
|
2022-08-29 18:18:07 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
TRes call({
|
|
|
|
Object? username = _undefined,
|
|
|
|
Object? password = _undefined,
|
|
|
|
}) =>
|
|
|
|
_then(Input$UserMutationInput._({
|
|
|
|
..._instance._$data,
|
|
|
|
if (username != _undefined && username != null)
|
|
|
|
'username': (username as String),
|
|
|
|
if (password != _undefined && password != null)
|
|
|
|
'password': (password as String),
|
|
|
|
}));
|
2022-08-29 18:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _CopyWithStubImpl$Input$UserMutationInput<TRes>
|
|
|
|
implements CopyWith$Input$UserMutationInput<TRes> {
|
|
|
|
_CopyWithStubImpl$Input$UserMutationInput(this._res);
|
|
|
|
|
|
|
|
TRes _res;
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
call({
|
|
|
|
String? username,
|
|
|
|
String? password,
|
|
|
|
}) =>
|
|
|
|
_res;
|
2022-07-25 14:06:55 +00:00
|
|
|
}
|
|
|
|
|
2023-06-16 01:30:46 +00:00
|
|
|
enum Enum$BackupProvider { BACKBLAZE, NONE, MEMORY, FILE, $unknown }
|
|
|
|
|
|
|
|
String toJson$Enum$BackupProvider(Enum$BackupProvider e) {
|
|
|
|
switch (e) {
|
|
|
|
case Enum$BackupProvider.BACKBLAZE:
|
|
|
|
return r'BACKBLAZE';
|
|
|
|
case Enum$BackupProvider.NONE:
|
|
|
|
return r'NONE';
|
|
|
|
case Enum$BackupProvider.MEMORY:
|
|
|
|
return r'MEMORY';
|
|
|
|
case Enum$BackupProvider.FILE:
|
|
|
|
return r'FILE';
|
|
|
|
case Enum$BackupProvider.$unknown:
|
|
|
|
return r'$unknown';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Enum$BackupProvider fromJson$Enum$BackupProvider(String value) {
|
|
|
|
switch (value) {
|
|
|
|
case r'BACKBLAZE':
|
|
|
|
return Enum$BackupProvider.BACKBLAZE;
|
|
|
|
case r'NONE':
|
|
|
|
return Enum$BackupProvider.NONE;
|
|
|
|
case r'MEMORY':
|
|
|
|
return Enum$BackupProvider.MEMORY;
|
|
|
|
case r'FILE':
|
|
|
|
return Enum$BackupProvider.FILE;
|
|
|
|
default:
|
|
|
|
return Enum$BackupProvider.$unknown;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-09 07:22:43 +00:00
|
|
|
enum Enum$BackupReason { EXPLICIT, AUTO, PRE_RESTORE, $unknown }
|
|
|
|
|
|
|
|
String toJson$Enum$BackupReason(Enum$BackupReason e) {
|
|
|
|
switch (e) {
|
|
|
|
case Enum$BackupReason.EXPLICIT:
|
|
|
|
return r'EXPLICIT';
|
|
|
|
case Enum$BackupReason.AUTO:
|
|
|
|
return r'AUTO';
|
|
|
|
case Enum$BackupReason.PRE_RESTORE:
|
|
|
|
return r'PRE_RESTORE';
|
|
|
|
case Enum$BackupReason.$unknown:
|
|
|
|
return r'$unknown';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Enum$BackupReason fromJson$Enum$BackupReason(String value) {
|
|
|
|
switch (value) {
|
|
|
|
case r'EXPLICIT':
|
|
|
|
return Enum$BackupReason.EXPLICIT;
|
|
|
|
case r'AUTO':
|
|
|
|
return Enum$BackupReason.AUTO;
|
|
|
|
case r'PRE_RESTORE':
|
|
|
|
return Enum$BackupReason.PRE_RESTORE;
|
|
|
|
default:
|
|
|
|
return Enum$BackupReason.$unknown;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-23 02:22:48 +00:00
|
|
|
enum Enum$DnsProvider { CLOUDFLARE, DIGITALOCEAN, DESEC, $unknown }
|
2023-02-24 10:44:55 +00:00
|
|
|
|
|
|
|
String toJson$Enum$DnsProvider(Enum$DnsProvider e) {
|
|
|
|
switch (e) {
|
|
|
|
case Enum$DnsProvider.CLOUDFLARE:
|
|
|
|
return r'CLOUDFLARE';
|
2023-06-02 03:52:32 +00:00
|
|
|
case Enum$DnsProvider.DIGITALOCEAN:
|
|
|
|
return r'DIGITALOCEAN';
|
2023-06-23 02:22:48 +00:00
|
|
|
case Enum$DnsProvider.DESEC:
|
|
|
|
return r'DESEC';
|
2023-02-24 10:44:55 +00:00
|
|
|
case Enum$DnsProvider.$unknown:
|
|
|
|
return r'$unknown';
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
}
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
Enum$DnsProvider fromJson$Enum$DnsProvider(String value) {
|
|
|
|
switch (value) {
|
|
|
|
case r'CLOUDFLARE':
|
|
|
|
return Enum$DnsProvider.CLOUDFLARE;
|
2023-06-02 03:52:32 +00:00
|
|
|
case r'DIGITALOCEAN':
|
|
|
|
return Enum$DnsProvider.DIGITALOCEAN;
|
2023-06-23 02:22:48 +00:00
|
|
|
case r'DESEC':
|
|
|
|
return Enum$DnsProvider.DESEC;
|
2023-02-24 10:44:55 +00:00
|
|
|
default:
|
|
|
|
return Enum$DnsProvider.$unknown;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-07 12:23:48 +00:00
|
|
|
enum Enum$RestoreStrategy { INPLACE, DOWNLOAD_VERIFY_OVERWRITE, $unknown }
|
|
|
|
|
|
|
|
String toJson$Enum$RestoreStrategy(Enum$RestoreStrategy e) {
|
|
|
|
switch (e) {
|
|
|
|
case Enum$RestoreStrategy.INPLACE:
|
|
|
|
return r'INPLACE';
|
|
|
|
case Enum$RestoreStrategy.DOWNLOAD_VERIFY_OVERWRITE:
|
|
|
|
return r'DOWNLOAD_VERIFY_OVERWRITE';
|
|
|
|
case Enum$RestoreStrategy.$unknown:
|
|
|
|
return r'$unknown';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Enum$RestoreStrategy fromJson$Enum$RestoreStrategy(String value) {
|
|
|
|
switch (value) {
|
|
|
|
case r'INPLACE':
|
|
|
|
return Enum$RestoreStrategy.INPLACE;
|
|
|
|
case r'DOWNLOAD_VERIFY_OVERWRITE':
|
|
|
|
return Enum$RestoreStrategy.DOWNLOAD_VERIFY_OVERWRITE;
|
|
|
|
default:
|
|
|
|
return Enum$RestoreStrategy.$unknown;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
enum Enum$ServerProvider { HETZNER, DIGITALOCEAN, $unknown }
|
|
|
|
|
|
|
|
String toJson$Enum$ServerProvider(Enum$ServerProvider e) {
|
|
|
|
switch (e) {
|
|
|
|
case Enum$ServerProvider.HETZNER:
|
|
|
|
return r'HETZNER';
|
|
|
|
case Enum$ServerProvider.DIGITALOCEAN:
|
|
|
|
return r'DIGITALOCEAN';
|
|
|
|
case Enum$ServerProvider.$unknown:
|
|
|
|
return r'$unknown';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Enum$ServerProvider fromJson$Enum$ServerProvider(String value) {
|
|
|
|
switch (value) {
|
|
|
|
case r'HETZNER':
|
|
|
|
return Enum$ServerProvider.HETZNER;
|
|
|
|
case r'DIGITALOCEAN':
|
|
|
|
return Enum$ServerProvider.DIGITALOCEAN;
|
|
|
|
default:
|
|
|
|
return Enum$ServerProvider.$unknown;
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
}
|
|
|
|
|
2022-08-24 05:35:49 +00:00
|
|
|
enum Enum$ServiceStatusEnum {
|
|
|
|
ACTIVE,
|
2023-06-16 01:30:46 +00:00
|
|
|
RELOADING,
|
2022-08-24 05:35:49 +00:00
|
|
|
INACTIVE,
|
2023-06-16 01:30:46 +00:00
|
|
|
FAILED,
|
|
|
|
ACTIVATING,
|
|
|
|
DEACTIVATING,
|
2022-08-24 05:35:49 +00:00
|
|
|
OFF,
|
|
|
|
$unknown
|
|
|
|
}
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
String toJson$Enum$ServiceStatusEnum(Enum$ServiceStatusEnum e) {
|
|
|
|
switch (e) {
|
|
|
|
case Enum$ServiceStatusEnum.ACTIVE:
|
|
|
|
return r'ACTIVE';
|
2023-06-16 01:30:46 +00:00
|
|
|
case Enum$ServiceStatusEnum.RELOADING:
|
|
|
|
return r'RELOADING';
|
2023-02-24 10:44:55 +00:00
|
|
|
case Enum$ServiceStatusEnum.INACTIVE:
|
|
|
|
return r'INACTIVE';
|
2023-06-16 01:30:46 +00:00
|
|
|
case Enum$ServiceStatusEnum.FAILED:
|
|
|
|
return r'FAILED';
|
|
|
|
case Enum$ServiceStatusEnum.ACTIVATING:
|
|
|
|
return r'ACTIVATING';
|
|
|
|
case Enum$ServiceStatusEnum.DEACTIVATING:
|
|
|
|
return r'DEACTIVATING';
|
2023-02-24 10:44:55 +00:00
|
|
|
case Enum$ServiceStatusEnum.OFF:
|
|
|
|
return r'OFF';
|
|
|
|
case Enum$ServiceStatusEnum.$unknown:
|
|
|
|
return r'$unknown';
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
Enum$ServiceStatusEnum fromJson$Enum$ServiceStatusEnum(String value) {
|
|
|
|
switch (value) {
|
|
|
|
case r'ACTIVE':
|
|
|
|
return Enum$ServiceStatusEnum.ACTIVE;
|
2023-06-16 01:30:46 +00:00
|
|
|
case r'RELOADING':
|
|
|
|
return Enum$ServiceStatusEnum.RELOADING;
|
2023-02-24 10:44:55 +00:00
|
|
|
case r'INACTIVE':
|
|
|
|
return Enum$ServiceStatusEnum.INACTIVE;
|
2023-06-16 01:30:46 +00:00
|
|
|
case r'FAILED':
|
|
|
|
return Enum$ServiceStatusEnum.FAILED;
|
|
|
|
case r'ACTIVATING':
|
|
|
|
return Enum$ServiceStatusEnum.ACTIVATING;
|
|
|
|
case r'DEACTIVATING':
|
|
|
|
return Enum$ServiceStatusEnum.DEACTIVATING;
|
2023-02-24 10:44:55 +00:00
|
|
|
case r'OFF':
|
|
|
|
return Enum$ServiceStatusEnum.OFF;
|
|
|
|
default:
|
|
|
|
return Enum$ServiceStatusEnum.$unknown;
|
|
|
|
}
|
2022-07-25 14:06:55 +00:00
|
|
|
}
|
|
|
|
|
2023-06-16 01:30:46 +00:00
|
|
|
enum Enum$Severity { INFO, WARNING, ERROR, CRITICAL, SUCCESS, $unknown }
|
2023-02-24 10:44:55 +00:00
|
|
|
|
|
|
|
String toJson$Enum$Severity(Enum$Severity e) {
|
|
|
|
switch (e) {
|
|
|
|
case Enum$Severity.INFO:
|
|
|
|
return r'INFO';
|
|
|
|
case Enum$Severity.WARNING:
|
|
|
|
return r'WARNING';
|
2023-06-16 01:30:46 +00:00
|
|
|
case Enum$Severity.ERROR:
|
|
|
|
return r'ERROR';
|
|
|
|
case Enum$Severity.CRITICAL:
|
|
|
|
return r'CRITICAL';
|
|
|
|
case Enum$Severity.SUCCESS:
|
|
|
|
return r'SUCCESS';
|
2023-02-24 10:44:55 +00:00
|
|
|
case Enum$Severity.$unknown:
|
|
|
|
return r'$unknown';
|
|
|
|
}
|
|
|
|
}
|
2022-10-30 14:21:38 +00:00
|
|
|
|
2023-02-24 10:44:55 +00:00
|
|
|
Enum$Severity fromJson$Enum$Severity(String value) {
|
|
|
|
switch (value) {
|
|
|
|
case r'INFO':
|
|
|
|
return Enum$Severity.INFO;
|
|
|
|
case r'WARNING':
|
|
|
|
return Enum$Severity.WARNING;
|
2023-06-16 01:30:46 +00:00
|
|
|
case r'ERROR':
|
|
|
|
return Enum$Severity.ERROR;
|
|
|
|
case r'CRITICAL':
|
|
|
|
return Enum$Severity.CRITICAL;
|
|
|
|
case r'SUCCESS':
|
|
|
|
return Enum$Severity.SUCCESS;
|
2023-02-24 10:44:55 +00:00
|
|
|
default:
|
|
|
|
return Enum$Severity.$unknown;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Enum$UserType { NORMAL, PRIMARY, ROOT, $unknown }
|
|
|
|
|
|
|
|
String toJson$Enum$UserType(Enum$UserType e) {
|
|
|
|
switch (e) {
|
|
|
|
case Enum$UserType.NORMAL:
|
|
|
|
return r'NORMAL';
|
|
|
|
case Enum$UserType.PRIMARY:
|
|
|
|
return r'PRIMARY';
|
|
|
|
case Enum$UserType.ROOT:
|
|
|
|
return r'ROOT';
|
|
|
|
case Enum$UserType.$unknown:
|
|
|
|
return r'$unknown';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Enum$UserType fromJson$Enum$UserType(String value) {
|
|
|
|
switch (value) {
|
|
|
|
case r'NORMAL':
|
|
|
|
return Enum$UserType.NORMAL;
|
|
|
|
case r'PRIMARY':
|
|
|
|
return Enum$UserType.PRIMARY;
|
|
|
|
case r'ROOT':
|
|
|
|
return Enum$UserType.ROOT;
|
|
|
|
default:
|
|
|
|
return Enum$UserType.$unknown;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-30 17:25:46 +00:00
|
|
|
const possibleTypesMap = <String, Set<String>>{
|
2022-07-25 14:06:55 +00:00
|
|
|
'MutationReturnInterface': {
|
|
|
|
'ApiKeyMutationReturn',
|
2022-08-24 05:35:49 +00:00
|
|
|
'AutoUpgradeSettingsMutationReturn',
|
2022-07-25 14:06:55 +00:00
|
|
|
'DeviceApiTokenMutationReturn',
|
2023-06-16 01:30:46 +00:00
|
|
|
'GenericBackupConfigReturn',
|
2023-06-19 21:05:57 +00:00
|
|
|
'GenericJobMutationReturn',
|
2022-08-24 05:35:49 +00:00
|
|
|
'GenericMutationReturn',
|
|
|
|
'ServiceJobMutationReturn',
|
|
|
|
'ServiceMutationReturn',
|
|
|
|
'TimezoneMutationReturn',
|
2023-02-24 10:44:55 +00:00
|
|
|
'UserMutationReturn',
|
2022-08-24 05:35:49 +00:00
|
|
|
},
|
2023-02-24 10:44:55 +00:00
|
|
|
'StorageUsageInterface': {'ServiceStorageUsage'},
|
2022-07-25 14:06:55 +00:00
|
|
|
};
|