chore(server): auto sort open api spec (#3500)

* chore: recursively sort api keys

* chore: open api
This commit is contained in:
Jason Rasmussen 2023-08-01 12:49:18 -04:00 committed by GitHub
parent 690b87e375
commit 310fab526d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
190 changed files with 6172 additions and 6168 deletions

View file

@ -13,13 +13,29 @@ part of openapi.api;
class OAuthConfigResponseDto {
/// Returns a new [OAuthConfigResponseDto] instance.
OAuthConfigResponseDto({
this.autoLaunch,
this.buttonText,
required this.enabled,
required this.passwordLoginEnabled,
this.url,
this.buttonText,
this.autoLaunch,
});
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
bool? autoLaunch;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? buttonText;
bool enabled;
bool passwordLoginEnabled;
@ -32,60 +48,44 @@ class OAuthConfigResponseDto {
///
String? url;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? buttonText;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
bool? autoLaunch;
@override
bool operator ==(Object other) => identical(this, other) || other is OAuthConfigResponseDto &&
other.autoLaunch == autoLaunch &&
other.buttonText == buttonText &&
other.enabled == enabled &&
other.passwordLoginEnabled == passwordLoginEnabled &&
other.url == url &&
other.buttonText == buttonText &&
other.autoLaunch == autoLaunch;
other.url == url;
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
(autoLaunch == null ? 0 : autoLaunch!.hashCode) +
(buttonText == null ? 0 : buttonText!.hashCode) +
(enabled.hashCode) +
(passwordLoginEnabled.hashCode) +
(url == null ? 0 : url!.hashCode) +
(buttonText == null ? 0 : buttonText!.hashCode) +
(autoLaunch == null ? 0 : autoLaunch!.hashCode);
(url == null ? 0 : url!.hashCode);
@override
String toString() => 'OAuthConfigResponseDto[enabled=$enabled, passwordLoginEnabled=$passwordLoginEnabled, url=$url, buttonText=$buttonText, autoLaunch=$autoLaunch]';
String toString() => 'OAuthConfigResponseDto[autoLaunch=$autoLaunch, buttonText=$buttonText, enabled=$enabled, passwordLoginEnabled=$passwordLoginEnabled, url=$url]';
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'enabled'] = this.enabled;
json[r'passwordLoginEnabled'] = this.passwordLoginEnabled;
if (this.url != null) {
json[r'url'] = this.url;
if (this.autoLaunch != null) {
json[r'autoLaunch'] = this.autoLaunch;
} else {
// json[r'url'] = null;
// json[r'autoLaunch'] = null;
}
if (this.buttonText != null) {
json[r'buttonText'] = this.buttonText;
} else {
// json[r'buttonText'] = null;
}
if (this.autoLaunch != null) {
json[r'autoLaunch'] = this.autoLaunch;
json[r'enabled'] = this.enabled;
json[r'passwordLoginEnabled'] = this.passwordLoginEnabled;
if (this.url != null) {
json[r'url'] = this.url;
} else {
// json[r'autoLaunch'] = null;
// json[r'url'] = null;
}
return json;
}
@ -98,11 +98,11 @@ class OAuthConfigResponseDto {
final json = value.cast<String, dynamic>();
return OAuthConfigResponseDto(
autoLaunch: mapValueOfType<bool>(json, r'autoLaunch'),
buttonText: mapValueOfType<String>(json, r'buttonText'),
enabled: mapValueOfType<bool>(json, r'enabled')!,
passwordLoginEnabled: mapValueOfType<bool>(json, r'passwordLoginEnabled')!,
url: mapValueOfType<String>(json, r'url'),
buttonText: mapValueOfType<String>(json, r'buttonText'),
autoLaunch: mapValueOfType<bool>(json, r'autoLaunch'),
);
}
return null;