mirror of
https://github.com/immich-app/immich.git
synced 2025-12-18 01:11:07 +03: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:
10
mobile/openapi/lib/model/api_key_create_dto.dart
generated
10
mobile/openapi/lib/model/api_key_create_dto.dart
generated
@@ -37,13 +37,13 @@ class APIKeyCreateDto {
|
||||
String toString() => 'APIKeyCreateDto[name=$name]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final _json = <String, dynamic>{};
|
||||
if (name != null) {
|
||||
_json[r'name'] = name;
|
||||
final json = <String, dynamic>{};
|
||||
if (this.name != null) {
|
||||
json[r'name'] = this.name;
|
||||
} else {
|
||||
_json[r'name'] = null;
|
||||
// json[r'name'] = null;
|
||||
}
|
||||
return _json;
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [APIKeyCreateDto] instance and imports its values from
|
||||
|
||||
Reference in New Issue
Block a user