mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore(server): auto sort open api spec (#3500)
* chore: recursively sort api keys * chore: open api
This commit is contained in:
parent
690b87e375
commit
310fab526d
190 changed files with 6172 additions and 6168 deletions
|
|
@ -13,32 +13,32 @@ part of openapi.api;
|
|||
class DeleteAssetResponseDto {
|
||||
/// Returns a new [DeleteAssetResponseDto] instance.
|
||||
DeleteAssetResponseDto({
|
||||
required this.status,
|
||||
required this.id,
|
||||
required this.status,
|
||||
});
|
||||
|
||||
DeleteAssetStatus status;
|
||||
|
||||
String id;
|
||||
|
||||
DeleteAssetStatus status;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => identical(this, other) || other is DeleteAssetResponseDto &&
|
||||
other.status == status &&
|
||||
other.id == id;
|
||||
other.id == id &&
|
||||
other.status == status;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(status.hashCode) +
|
||||
(id.hashCode);
|
||||
(id.hashCode) +
|
||||
(status.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'DeleteAssetResponseDto[status=$status, id=$id]';
|
||||
String toString() => 'DeleteAssetResponseDto[id=$id, status=$status]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
json[r'status'] = this.status;
|
||||
json[r'id'] = this.id;
|
||||
json[r'status'] = this.status;
|
||||
return json;
|
||||
}
|
||||
|
||||
|
|
@ -50,8 +50,8 @@ class DeleteAssetResponseDto {
|
|||
final json = value.cast<String, dynamic>();
|
||||
|
||||
return DeleteAssetResponseDto(
|
||||
status: DeleteAssetStatus.fromJson(json[r'status'])!,
|
||||
id: mapValueOfType<String>(json, r'id')!,
|
||||
status: DeleteAssetStatus.fromJson(json[r'status'])!,
|
||||
);
|
||||
}
|
||||
return null;
|
||||
|
|
@ -99,8 +99,8 @@ class DeleteAssetResponseDto {
|
|||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{
|
||||
'status',
|
||||
'id',
|
||||
'status',
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue