mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
fix(mobile): omit null values from json requests (#1212)
* chore: initial template * feat: exlude null values * chore: regenerate openapi * chore: merge * feat: store changes in a patch file * feat: extract to sh script * chore: regenerate openapi * chore: remove duplicate file * feat: generate mobile by itself * Fixed number property not decorated correctly * Revert hotfix, fix test * Merge main Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
16
mobile/openapi/lib/model/update_album_dto.dart
generated
16
mobile/openapi/lib/model/update_album_dto.dart
generated
@@ -48,18 +48,18 @@ class UpdateAlbumDto {
|
||||
String toString() => 'UpdateAlbumDto[albumName=$albumName, albumThumbnailAssetId=$albumThumbnailAssetId]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final _json = <String, dynamic>{};
|
||||
if (albumName != null) {
|
||||
_json[r'albumName'] = albumName;
|
||||
final json = <String, dynamic>{};
|
||||
if (this.albumName != null) {
|
||||
json[r'albumName'] = this.albumName;
|
||||
} else {
|
||||
_json[r'albumName'] = null;
|
||||
// json[r'albumName'] = null;
|
||||
}
|
||||
if (albumThumbnailAssetId != null) {
|
||||
_json[r'albumThumbnailAssetId'] = albumThumbnailAssetId;
|
||||
if (this.albumThumbnailAssetId != null) {
|
||||
json[r'albumThumbnailAssetId'] = this.albumThumbnailAssetId;
|
||||
} else {
|
||||
_json[r'albumThumbnailAssetId'] = null;
|
||||
// json[r'albumThumbnailAssetId'] = null;
|
||||
}
|
||||
return _json;
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [UpdateAlbumDto] instance and imports its values from
|
||||
|
||||
Reference in New Issue
Block a user