mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
chore(server): auto sort open api spec (#3500)
* chore: recursively sort api keys * chore: open api
This commit is contained in:
@@ -13,12 +13,10 @@ part of openapi.api;
|
||||
class CheckDuplicateAssetResponseDto {
|
||||
/// Returns a new [CheckDuplicateAssetResponseDto] instance.
|
||||
CheckDuplicateAssetResponseDto({
|
||||
required this.isExist,
|
||||
this.id,
|
||||
required this.isExist,
|
||||
});
|
||||
|
||||
bool isExist;
|
||||
|
||||
///
|
||||
/// 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
|
||||
@@ -27,28 +25,30 @@ class CheckDuplicateAssetResponseDto {
|
||||
///
|
||||
String? id;
|
||||
|
||||
bool isExist;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => identical(this, other) || other is CheckDuplicateAssetResponseDto &&
|
||||
other.isExist == isExist &&
|
||||
other.id == id;
|
||||
other.id == id &&
|
||||
other.isExist == isExist;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(isExist.hashCode) +
|
||||
(id == null ? 0 : id!.hashCode);
|
||||
(id == null ? 0 : id!.hashCode) +
|
||||
(isExist.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'CheckDuplicateAssetResponseDto[isExist=$isExist, id=$id]';
|
||||
String toString() => 'CheckDuplicateAssetResponseDto[id=$id, isExist=$isExist]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
json[r'isExist'] = this.isExist;
|
||||
if (this.id != null) {
|
||||
json[r'id'] = this.id;
|
||||
} else {
|
||||
// json[r'id'] = null;
|
||||
}
|
||||
json[r'isExist'] = this.isExist;
|
||||
return json;
|
||||
}
|
||||
|
||||
@@ -60,8 +60,8 @@ class CheckDuplicateAssetResponseDto {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
return CheckDuplicateAssetResponseDto(
|
||||
isExist: mapValueOfType<bool>(json, r'isExist')!,
|
||||
id: mapValueOfType<String>(json, r'id'),
|
||||
isExist: mapValueOfType<bool>(json, r'isExist')!,
|
||||
);
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user