gen client

This commit is contained in:
timonrieger
2026-05-04 17:22:50 +02:00
parent 17af4324eb
commit 49b30ea2f2
315 changed files with 4724 additions and 930 deletions
+19 -13
View File
@@ -162,62 +162,62 @@ class UserPreferencesUpdateDto {
if (this.albums != null) {
json[r'albums'] = this.albums;
} else {
// json[r'albums'] = null;
json[r'albums'] = null;
}
if (this.avatar != null) {
json[r'avatar'] = this.avatar;
} else {
// json[r'avatar'] = null;
json[r'avatar'] = null;
}
if (this.cast != null) {
json[r'cast'] = this.cast;
} else {
// json[r'cast'] = null;
json[r'cast'] = null;
}
if (this.download != null) {
json[r'download'] = this.download;
} else {
// json[r'download'] = null;
json[r'download'] = null;
}
if (this.emailNotifications != null) {
json[r'emailNotifications'] = this.emailNotifications;
} else {
// json[r'emailNotifications'] = null;
json[r'emailNotifications'] = null;
}
if (this.folders != null) {
json[r'folders'] = this.folders;
} else {
// json[r'folders'] = null;
json[r'folders'] = null;
}
if (this.memories != null) {
json[r'memories'] = this.memories;
} else {
// json[r'memories'] = null;
json[r'memories'] = null;
}
if (this.people != null) {
json[r'people'] = this.people;
} else {
// json[r'people'] = null;
json[r'people'] = null;
}
if (this.purchase != null) {
json[r'purchase'] = this.purchase;
} else {
// json[r'purchase'] = null;
json[r'purchase'] = null;
}
if (this.ratings != null) {
json[r'ratings'] = this.ratings;
} else {
// json[r'ratings'] = null;
json[r'ratings'] = null;
}
if (this.sharedLinks != null) {
json[r'sharedLinks'] = this.sharedLinks;
} else {
// json[r'sharedLinks'] = null;
json[r'sharedLinks'] = null;
}
if (this.tags != null) {
json[r'tags'] = this.tags;
} else {
// json[r'tags'] = null;
json[r'tags'] = null;
}
return json;
}
@@ -226,10 +226,16 @@ class UserPreferencesUpdateDto {
/// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods
static UserPreferencesUpdateDto? fromJson(dynamic value) {
upgradeDto(value, "UserPreferencesUpdateDto");
if (value is Map) {
final json = value.cast<String, dynamic>();
// Ensure that the map contains the required keys.
// Note 1: the values aren't checked for validity beyond being non-null.
// Note 2: this code is stripped in release mode!
assert(() {
return true;
}());
return UserPreferencesUpdateDto(
albums: AlbumsUpdate.fromJson(json[r'albums']),
avatar: AvatarUpdate.fromJson(json[r'avatar']),