1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-08 23:07:06 +02:00

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
190 changed files with 6172 additions and 6168 deletions

View File

@ -13,33 +13,33 @@ part of openapi.api;
class AssetBulkUploadCheckItem {
/// Returns a new [AssetBulkUploadCheckItem] instance.
AssetBulkUploadCheckItem({
required this.id,
required this.checksum,
required this.id,
});
String id;
/// base64 or hex encoded sha1 hash
String checksum;
String id;
@override
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckItem &&
other.id == id &&
other.checksum == checksum;
other.checksum == checksum &&
other.id == id;
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
(id.hashCode) +
(checksum.hashCode);
(checksum.hashCode) +
(id.hashCode);
@override
String toString() => 'AssetBulkUploadCheckItem[id=$id, checksum=$checksum]';
String toString() => 'AssetBulkUploadCheckItem[checksum=$checksum, id=$id]';
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'checksum'] = this.checksum;
json[r'id'] = this.id;
return json;
}
@ -51,8 +51,8 @@ class AssetBulkUploadCheckItem {
final json = value.cast<String, dynamic>();
return AssetBulkUploadCheckItem(
id: mapValueOfType<String>(json, r'id')!,
checksum: mapValueOfType<String>(json, r'checksum')!,
id: mapValueOfType<String>(json, r'id')!,
);
}
return null;
@ -100,8 +100,8 @@ class AssetBulkUploadCheckItem {
/// The list of required keys that must be present in a JSON.
static const requiredKeys = <String>{
'id',
'checksum',
'id',
};
}