2022-12-09 22:51:42 +02:00
|
|
|
//
|
|
|
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
|
|
//
|
|
|
|
// @dart=2.12
|
|
|
|
|
|
|
|
// ignore_for_file: unused_element, unused_import
|
|
|
|
// ignore_for_file: always_put_required_named_parameters_first
|
|
|
|
// ignore_for_file: constant_identifier_names
|
|
|
|
// ignore_for_file: lines_longer_than_80_chars
|
|
|
|
|
|
|
|
part of openapi.api;
|
|
|
|
|
|
|
|
class SystemConfigOAuthDto {
|
|
|
|
/// Returns a new [SystemConfigOAuthDto] instance.
|
|
|
|
SystemConfigOAuthDto({
|
2023-08-01 18:49:18 +02:00
|
|
|
required this.autoLaunch,
|
|
|
|
required this.autoRegister,
|
|
|
|
required this.buttonText,
|
2022-12-09 22:51:42 +02:00
|
|
|
required this.clientId,
|
|
|
|
required this.clientSecret,
|
2024-03-02 02:46:07 +02:00
|
|
|
required this.defaultStorageQuota,
|
2023-08-01 18:49:18 +02:00
|
|
|
required this.enabled,
|
|
|
|
required this.issuerUrl,
|
2022-12-29 22:47:30 +02:00
|
|
|
required this.mobileOverrideEnabled,
|
|
|
|
required this.mobileRedirectUri,
|
2023-08-01 18:49:18 +02:00
|
|
|
required this.scope,
|
2024-02-02 07:27:54 +02:00
|
|
|
required this.signingAlgorithm,
|
2023-08-01 18:49:18 +02:00
|
|
|
required this.storageLabelClaim,
|
2024-03-02 02:46:07 +02:00
|
|
|
required this.storageQuotaClaim,
|
2022-12-09 22:51:42 +02:00
|
|
|
});
|
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
bool autoLaunch;
|
2022-12-09 22:51:42 +02:00
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
bool autoRegister;
|
|
|
|
|
|
|
|
String buttonText;
|
2022-12-09 22:51:42 +02:00
|
|
|
|
|
|
|
String clientId;
|
|
|
|
|
|
|
|
String clientSecret;
|
|
|
|
|
2024-03-02 02:46:07 +02:00
|
|
|
num defaultStorageQuota;
|
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
bool enabled;
|
2022-12-09 22:51:42 +02:00
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
String issuerUrl;
|
2023-01-09 23:32:58 +02:00
|
|
|
|
2022-12-29 22:47:30 +02:00
|
|
|
bool mobileOverrideEnabled;
|
|
|
|
|
|
|
|
String mobileRedirectUri;
|
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
String scope;
|
|
|
|
|
2024-02-02 07:27:54 +02:00
|
|
|
String signingAlgorithm;
|
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
String storageLabelClaim;
|
|
|
|
|
2024-03-02 02:46:07 +02:00
|
|
|
String storageQuotaClaim;
|
|
|
|
|
2022-12-09 22:51:42 +02:00
|
|
|
@override
|
|
|
|
bool operator ==(Object other) => identical(this, other) || other is SystemConfigOAuthDto &&
|
2024-01-26 18:40:28 +02:00
|
|
|
other.autoLaunch == autoLaunch &&
|
|
|
|
other.autoRegister == autoRegister &&
|
|
|
|
other.buttonText == buttonText &&
|
|
|
|
other.clientId == clientId &&
|
|
|
|
other.clientSecret == clientSecret &&
|
2024-03-02 02:46:07 +02:00
|
|
|
other.defaultStorageQuota == defaultStorageQuota &&
|
2024-01-26 18:40:28 +02:00
|
|
|
other.enabled == enabled &&
|
|
|
|
other.issuerUrl == issuerUrl &&
|
|
|
|
other.mobileOverrideEnabled == mobileOverrideEnabled &&
|
|
|
|
other.mobileRedirectUri == mobileRedirectUri &&
|
|
|
|
other.scope == scope &&
|
2024-02-02 07:27:54 +02:00
|
|
|
other.signingAlgorithm == signingAlgorithm &&
|
2024-03-02 02:46:07 +02:00
|
|
|
other.storageLabelClaim == storageLabelClaim &&
|
|
|
|
other.storageQuotaClaim == storageQuotaClaim;
|
2022-12-09 22:51:42 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
int get hashCode =>
|
|
|
|
// ignore: unnecessary_parenthesis
|
2023-08-01 18:49:18 +02:00
|
|
|
(autoLaunch.hashCode) +
|
|
|
|
(autoRegister.hashCode) +
|
|
|
|
(buttonText.hashCode) +
|
2022-12-09 22:51:42 +02:00
|
|
|
(clientId.hashCode) +
|
|
|
|
(clientSecret.hashCode) +
|
2024-03-02 02:46:07 +02:00
|
|
|
(defaultStorageQuota.hashCode) +
|
2023-08-01 18:49:18 +02:00
|
|
|
(enabled.hashCode) +
|
|
|
|
(issuerUrl.hashCode) +
|
2022-12-29 22:47:30 +02:00
|
|
|
(mobileOverrideEnabled.hashCode) +
|
2023-08-01 18:49:18 +02:00
|
|
|
(mobileRedirectUri.hashCode) +
|
|
|
|
(scope.hashCode) +
|
2024-02-02 07:27:54 +02:00
|
|
|
(signingAlgorithm.hashCode) +
|
2024-03-02 02:46:07 +02:00
|
|
|
(storageLabelClaim.hashCode) +
|
|
|
|
(storageQuotaClaim.hashCode);
|
2022-12-09 22:51:42 +02:00
|
|
|
|
|
|
|
@override
|
2024-03-02 02:46:07 +02:00
|
|
|
String toString() => 'SystemConfigOAuthDto[autoLaunch=$autoLaunch, autoRegister=$autoRegister, buttonText=$buttonText, clientId=$clientId, clientSecret=$clientSecret, defaultStorageQuota=$defaultStorageQuota, enabled=$enabled, issuerUrl=$issuerUrl, mobileOverrideEnabled=$mobileOverrideEnabled, mobileRedirectUri=$mobileRedirectUri, scope=$scope, signingAlgorithm=$signingAlgorithm, storageLabelClaim=$storageLabelClaim, storageQuotaClaim=$storageQuotaClaim]';
|
2022-12-09 22:51:42 +02:00
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
2023-01-10 06:08:45 +02:00
|
|
|
final json = <String, dynamic>{};
|
2023-08-01 18:49:18 +02:00
|
|
|
json[r'autoLaunch'] = this.autoLaunch;
|
|
|
|
json[r'autoRegister'] = this.autoRegister;
|
|
|
|
json[r'buttonText'] = this.buttonText;
|
2023-01-10 06:08:45 +02:00
|
|
|
json[r'clientId'] = this.clientId;
|
|
|
|
json[r'clientSecret'] = this.clientSecret;
|
2024-03-02 02:46:07 +02:00
|
|
|
json[r'defaultStorageQuota'] = this.defaultStorageQuota;
|
2023-08-01 18:49:18 +02:00
|
|
|
json[r'enabled'] = this.enabled;
|
|
|
|
json[r'issuerUrl'] = this.issuerUrl;
|
2023-01-10 06:08:45 +02:00
|
|
|
json[r'mobileOverrideEnabled'] = this.mobileOverrideEnabled;
|
|
|
|
json[r'mobileRedirectUri'] = this.mobileRedirectUri;
|
2023-08-01 18:49:18 +02:00
|
|
|
json[r'scope'] = this.scope;
|
2024-02-02 07:27:54 +02:00
|
|
|
json[r'signingAlgorithm'] = this.signingAlgorithm;
|
2023-08-01 18:49:18 +02:00
|
|
|
json[r'storageLabelClaim'] = this.storageLabelClaim;
|
2024-03-02 02:46:07 +02:00
|
|
|
json[r'storageQuotaClaim'] = this.storageQuotaClaim;
|
2023-01-10 06:08:45 +02:00
|
|
|
return json;
|
2022-12-09 22:51:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/// Returns a new [SystemConfigOAuthDto] instance and imports its values from
|
|
|
|
/// [value] if it's a [Map], null otherwise.
|
|
|
|
// ignore: prefer_constructors_over_static_methods
|
|
|
|
static SystemConfigOAuthDto? fromJson(dynamic value) {
|
|
|
|
if (value is Map) {
|
|
|
|
final json = value.cast<String, dynamic>();
|
|
|
|
|
|
|
|
return SystemConfigOAuthDto(
|
2023-08-01 18:49:18 +02:00
|
|
|
autoLaunch: mapValueOfType<bool>(json, r'autoLaunch')!,
|
|
|
|
autoRegister: mapValueOfType<bool>(json, r'autoRegister')!,
|
|
|
|
buttonText: mapValueOfType<String>(json, r'buttonText')!,
|
2022-12-09 22:51:42 +02:00
|
|
|
clientId: mapValueOfType<String>(json, r'clientId')!,
|
|
|
|
clientSecret: mapValueOfType<String>(json, r'clientSecret')!,
|
2024-03-02 02:46:07 +02:00
|
|
|
defaultStorageQuota: num.parse('${json[r'defaultStorageQuota']}'),
|
2023-08-01 18:49:18 +02:00
|
|
|
enabled: mapValueOfType<bool>(json, r'enabled')!,
|
|
|
|
issuerUrl: mapValueOfType<String>(json, r'issuerUrl')!,
|
2022-12-29 22:47:30 +02:00
|
|
|
mobileOverrideEnabled: mapValueOfType<bool>(json, r'mobileOverrideEnabled')!,
|
|
|
|
mobileRedirectUri: mapValueOfType<String>(json, r'mobileRedirectUri')!,
|
2023-08-01 18:49:18 +02:00
|
|
|
scope: mapValueOfType<String>(json, r'scope')!,
|
2024-02-02 07:27:54 +02:00
|
|
|
signingAlgorithm: mapValueOfType<String>(json, r'signingAlgorithm')!,
|
2023-08-01 18:49:18 +02:00
|
|
|
storageLabelClaim: mapValueOfType<String>(json, r'storageLabelClaim')!,
|
2024-03-02 02:46:07 +02:00
|
|
|
storageQuotaClaim: mapValueOfType<String>(json, r'storageQuotaClaim')!,
|
2022-12-09 22:51:42 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2023-05-03 21:27:57 +02:00
|
|
|
static List<SystemConfigOAuthDto> listFromJson(dynamic json, {bool growable = false,}) {
|
2022-12-09 22:51:42 +02:00
|
|
|
final result = <SystemConfigOAuthDto>[];
|
|
|
|
if (json is List && json.isNotEmpty) {
|
|
|
|
for (final row in json) {
|
|
|
|
final value = SystemConfigOAuthDto.fromJson(row);
|
|
|
|
if (value != null) {
|
|
|
|
result.add(value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return result.toList(growable: growable);
|
|
|
|
}
|
|
|
|
|
|
|
|
static Map<String, SystemConfigOAuthDto> mapFromJson(dynamic json) {
|
|
|
|
final map = <String, SystemConfigOAuthDto>{};
|
|
|
|
if (json is Map && json.isNotEmpty) {
|
|
|
|
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
|
|
for (final entry in json.entries) {
|
|
|
|
final value = SystemConfigOAuthDto.fromJson(entry.value);
|
|
|
|
if (value != null) {
|
|
|
|
map[entry.key] = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
// maps a json object with a list of SystemConfigOAuthDto-objects as value to a dart map
|
|
|
|
static Map<String, List<SystemConfigOAuthDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
|
|
final map = <String, List<SystemConfigOAuthDto>>{};
|
|
|
|
if (json is Map && json.isNotEmpty) {
|
2023-05-03 21:27:57 +02:00
|
|
|
// ignore: parameter_assignments
|
|
|
|
json = json.cast<String, dynamic>();
|
2022-12-09 22:51:42 +02:00
|
|
|
for (final entry in json.entries) {
|
2023-05-03 21:27:57 +02:00
|
|
|
map[entry.key] = SystemConfigOAuthDto.listFromJson(entry.value, growable: growable,);
|
2022-12-09 22:51:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// The list of required keys that must be present in a JSON.
|
|
|
|
static const requiredKeys = <String>{
|
2023-08-01 18:49:18 +02:00
|
|
|
'autoLaunch',
|
|
|
|
'autoRegister',
|
|
|
|
'buttonText',
|
2022-12-09 22:51:42 +02:00
|
|
|
'clientId',
|
|
|
|
'clientSecret',
|
2024-03-02 02:46:07 +02:00
|
|
|
'defaultStorageQuota',
|
2023-08-01 18:49:18 +02:00
|
|
|
'enabled',
|
|
|
|
'issuerUrl',
|
2022-12-29 22:47:30 +02:00
|
|
|
'mobileOverrideEnabled',
|
|
|
|
'mobileRedirectUri',
|
2023-08-01 18:49:18 +02:00
|
|
|
'scope',
|
2024-02-02 07:27:54 +02:00
|
|
|
'signingAlgorithm',
|
2023-08-01 18:49:18 +02:00
|
|
|
'storageLabelClaim',
|
2024-03-02 02:46:07 +02:00
|
|
|
'storageQuotaClaim',
|
2022-12-09 22:51:42 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|