1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-03-01 15:11:21 +01:00

chore(server): patch dart openapi assertion (#2914)

* chore(server): patch dart openapi assertion

* remove unused file
This commit is contained in:
Alex 2023-06-22 12:48:57 -05:00 committed by GitHub
parent 3e2f335a4c
commit 4311d385fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
93 changed files with 103 additions and 94 deletions

View file

@ -49,7 +49,7 @@ class AddAssetsDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AddAssetsDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AddAssetsDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AddAssetsDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AddAssetsDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -71,7 +71,7 @@ class AddAssetsResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AddAssetsResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AddAssetsResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AddAssetsResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AddAssetsResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class AddUsersDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AddUsersDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AddUsersDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AddUsersDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AddUsersDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -73,7 +73,7 @@ class AdminSignupResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AdminSignupResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AdminSignupResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AdminSignupResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AdminSignupResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -61,7 +61,7 @@ class AlbumCountResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AlbumCountResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AlbumCountResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AlbumCountResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AlbumCountResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -129,7 +129,7 @@ class AlbumResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AlbumResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AlbumResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AlbumResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AlbumResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -103,7 +103,7 @@ class AllJobStatusResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AllJobStatusResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AllJobStatusResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AllJobStatusResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AllJobStatusResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -59,7 +59,7 @@ class APIKeyCreateDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "APIKeyCreateDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "APIKeyCreateDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "APIKeyCreateDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "APIKeyCreateDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class APIKeyCreateResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "APIKeyCreateResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "APIKeyCreateResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "APIKeyCreateResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "APIKeyCreateResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -67,7 +67,7 @@ class APIKeyResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "APIKeyResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "APIKeyResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "APIKeyResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "APIKeyResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class APIKeyUpdateDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "APIKeyUpdateDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "APIKeyUpdateDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "APIKeyUpdateDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "APIKeyUpdateDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class AssetBulkUploadCheckDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AssetBulkUploadCheckDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AssetBulkUploadCheckDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AssetBulkUploadCheckDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AssetBulkUploadCheckDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -56,7 +56,7 @@ class AssetBulkUploadCheckItem {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AssetBulkUploadCheckItem[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AssetBulkUploadCheckItem[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AssetBulkUploadCheckItem[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AssetBulkUploadCheckItem[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class AssetBulkUploadCheckResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AssetBulkUploadCheckResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AssetBulkUploadCheckResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AssetBulkUploadCheckResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AssetBulkUploadCheckResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -81,7 +81,7 @@ class AssetBulkUploadCheckResult {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AssetBulkUploadCheckResult[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AssetBulkUploadCheckResult[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AssetBulkUploadCheckResult[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AssetBulkUploadCheckResult[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class AssetCountByTimeBucket {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AssetCountByTimeBucket[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AssetCountByTimeBucket[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AssetCountByTimeBucket[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AssetCountByTimeBucket[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class AssetCountByTimeBucketResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AssetCountByTimeBucketResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AssetCountByTimeBucketResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AssetCountByTimeBucketResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AssetCountByTimeBucketResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -73,7 +73,7 @@ class AssetCountByUserIdResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AssetCountByUserIdResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AssetCountByUserIdResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AssetCountByUserIdResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AssetCountByUserIdResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class AssetFileUploadResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AssetFileUploadResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AssetFileUploadResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AssetFileUploadResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AssetFileUploadResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class AssetIdsDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AssetIdsDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AssetIdsDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AssetIdsDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AssetIdsDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -65,7 +65,7 @@ class AssetIdsResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AssetIdsResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AssetIdsResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AssetIdsResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AssetIdsResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -209,7 +209,7 @@ class AssetResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AssetResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AssetResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AssetResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AssetResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -79,7 +79,7 @@ class AuthDeviceResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "AuthDeviceResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "AuthDeviceResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "AuthDeviceResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "AuthDeviceResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class ChangePasswordDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "ChangePasswordDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "ChangePasswordDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "ChangePasswordDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "ChangePasswordDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class CheckDuplicateAssetDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "CheckDuplicateAssetDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "CheckDuplicateAssetDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "CheckDuplicateAssetDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "CheckDuplicateAssetDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -65,7 +65,7 @@ class CheckDuplicateAssetResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "CheckDuplicateAssetResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "CheckDuplicateAssetResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "CheckDuplicateAssetResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "CheckDuplicateAssetResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class CheckExistingAssetsDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "CheckExistingAssetsDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "CheckExistingAssetsDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "CheckExistingAssetsDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "CheckExistingAssetsDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class CheckExistingAssetsResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "CheckExistingAssetsResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "CheckExistingAssetsResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "CheckExistingAssetsResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "CheckExistingAssetsResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -61,7 +61,7 @@ class CreateAlbumDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "CreateAlbumDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "CreateAlbumDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "CreateAlbumDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "CreateAlbumDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class CreateProfileImageResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "CreateProfileImageResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "CreateProfileImageResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "CreateProfileImageResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "CreateProfileImageResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class CreateTagDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "CreateTagDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "CreateTagDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "CreateTagDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "CreateTagDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -87,7 +87,7 @@ class CreateUserDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "CreateUserDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "CreateUserDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "CreateUserDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "CreateUserDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -73,7 +73,7 @@ class CuratedLocationsResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "CuratedLocationsResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "CuratedLocationsResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "CuratedLocationsResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "CuratedLocationsResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -73,7 +73,7 @@ class CuratedObjectsResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "CuratedObjectsResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "CuratedObjectsResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "CuratedObjectsResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "CuratedObjectsResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class DeleteAssetDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "DeleteAssetDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "DeleteAssetDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "DeleteAssetDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "DeleteAssetDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class DeleteAssetResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "DeleteAssetResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "DeleteAssetResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "DeleteAssetResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "DeleteAssetResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class DownloadFilesDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "DownloadFilesDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "DownloadFilesDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "DownloadFilesDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "DownloadFilesDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -243,7 +243,7 @@ class ExifResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "ExifResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "ExifResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "ExifResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "ExifResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -82,7 +82,7 @@ class GetAssetByTimeBucketDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "GetAssetByTimeBucketDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "GetAssetByTimeBucketDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "GetAssetByTimeBucketDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "GetAssetByTimeBucketDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -82,7 +82,7 @@ class GetAssetCountByTimeBucketDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "GetAssetCountByTimeBucketDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "GetAssetCountByTimeBucketDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "GetAssetCountByTimeBucketDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "GetAssetCountByTimeBucketDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -155,7 +155,7 @@ class ImportAssetDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "ImportAssetDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "ImportAssetDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "ImportAssetDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "ImportAssetDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class JobCommandDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "JobCommandDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "JobCommandDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "JobCommandDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "JobCommandDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -79,7 +79,7 @@ class JobCountsDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "JobCountsDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "JobCountsDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "JobCountsDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "JobCountsDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class JobSettingsDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "JobSettingsDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "JobSettingsDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "JobSettingsDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "JobSettingsDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class JobStatusDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "JobStatusDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "JobStatusDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "JobStatusDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "JobStatusDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class LoginCredentialDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "LoginCredentialDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "LoginCredentialDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "LoginCredentialDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "LoginCredentialDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -91,7 +91,7 @@ class LoginResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "LoginResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "LoginResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "LoginResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "LoginResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class LogoutResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "LogoutResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "LogoutResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "LogoutResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "LogoutResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -61,7 +61,7 @@ class MapMarkerResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "MapMarkerResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "MapMarkerResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "MapMarkerResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "MapMarkerResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class MemoryLaneResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "MemoryLaneResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "MemoryLaneResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "MemoryLaneResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "MemoryLaneResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class OAuthCallbackDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "OAuthCallbackDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "OAuthCallbackDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "OAuthCallbackDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "OAuthCallbackDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class OAuthConfigDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "OAuthConfigDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "OAuthConfigDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "OAuthConfigDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "OAuthConfigDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -103,7 +103,7 @@ class OAuthConfigResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "OAuthConfigResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "OAuthConfigResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "OAuthConfigResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "OAuthConfigResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -61,7 +61,7 @@ class PersonResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "PersonResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "PersonResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "PersonResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "PersonResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class PersonUpdateDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "PersonUpdateDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "PersonUpdateDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "PersonUpdateDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "PersonUpdateDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class QueueStatusDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "QueueStatusDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "QueueStatusDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "QueueStatusDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "QueueStatusDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class RemoveAssetsDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "RemoveAssetsDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "RemoveAssetsDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "RemoveAssetsDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "RemoveAssetsDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -67,7 +67,7 @@ class SearchAlbumResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SearchAlbumResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SearchAlbumResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SearchAlbumResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SearchAlbumResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class SearchAssetDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SearchAssetDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SearchAssetDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SearchAssetDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SearchAssetDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -67,7 +67,7 @@ class SearchAssetResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SearchAssetResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SearchAssetResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SearchAssetResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SearchAssetResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class SearchConfigResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SearchConfigResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SearchConfigResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SearchConfigResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SearchConfigResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class SearchExploreItem {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SearchExploreItem[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SearchExploreItem[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SearchExploreItem[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SearchExploreItem[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class SearchExploreResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SearchExploreResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SearchExploreResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SearchExploreResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SearchExploreResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class SearchFacetCountResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SearchFacetCountResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SearchFacetCountResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SearchFacetCountResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SearchFacetCountResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class SearchFacetResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SearchFacetResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SearchFacetResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SearchFacetResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SearchFacetResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -55,7 +55,7 @@ class SearchResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SearchResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SearchResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SearchResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SearchResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -85,7 +85,7 @@ class ServerInfoResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "ServerInfoResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "ServerInfoResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "ServerInfoResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "ServerInfoResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class ServerPingResponse {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "ServerPingResponse[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "ServerPingResponse[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "ServerPingResponse[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "ServerPingResponse[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -67,7 +67,7 @@ class ServerStatsResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "ServerStatsResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "ServerStatsResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "ServerStatsResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "ServerStatsResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -61,7 +61,7 @@ class ServerVersionReponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "ServerVersionReponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "ServerVersionReponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "ServerVersionReponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "ServerVersionReponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -115,7 +115,7 @@ class SharedLinkCreateDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SharedLinkCreateDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SharedLinkCreateDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SharedLinkCreateDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SharedLinkCreateDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -117,7 +117,7 @@ class SharedLinkEditDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SharedLinkEditDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SharedLinkEditDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SharedLinkEditDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SharedLinkEditDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -133,7 +133,7 @@ class SharedLinkResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SharedLinkResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SharedLinkResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SharedLinkResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SharedLinkResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -67,7 +67,7 @@ class SignUpDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SignUpDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SignUpDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SignUpDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SignUpDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -63,7 +63,7 @@ class SmartInfoResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SmartInfoResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SmartInfoResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SmartInfoResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SmartInfoResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -73,7 +73,7 @@ class SystemConfigDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SystemConfigDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SystemConfigDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SystemConfigDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SystemConfigDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -97,7 +97,7 @@ class SystemConfigFFmpegDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SystemConfigFFmpegDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SystemConfigFFmpegDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SystemConfigFFmpegDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SystemConfigFFmpegDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -103,7 +103,7 @@ class SystemConfigJobDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SystemConfigJobDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SystemConfigJobDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SystemConfigJobDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SystemConfigJobDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -103,7 +103,7 @@ class SystemConfigOAuthDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SystemConfigOAuthDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SystemConfigOAuthDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SystemConfigOAuthDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SystemConfigOAuthDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class SystemConfigPasswordLoginDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SystemConfigPasswordLoginDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SystemConfigPasswordLoginDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SystemConfigPasswordLoginDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SystemConfigPasswordLoginDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class SystemConfigStorageTemplateDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SystemConfigStorageTemplateDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SystemConfigStorageTemplateDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SystemConfigStorageTemplateDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SystemConfigStorageTemplateDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -85,7 +85,7 @@ class SystemConfigTemplateStorageOptionDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "SystemConfigTemplateStorageOptionDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "SystemConfigTemplateStorageOptionDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "SystemConfigTemplateStorageOptionDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "SystemConfigTemplateStorageOptionDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -67,7 +67,7 @@ class TagResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "TagResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "TagResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "TagResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "TagResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -75,7 +75,7 @@ class UpdateAlbumDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "UpdateAlbumDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "UpdateAlbumDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "UpdateAlbumDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "UpdateAlbumDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -97,7 +97,7 @@ class UpdateAssetDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "UpdateAssetDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "UpdateAssetDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "UpdateAssetDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "UpdateAssetDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -59,7 +59,7 @@ class UpdateTagDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "UpdateTagDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "UpdateTagDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "UpdateTagDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "UpdateTagDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -177,7 +177,7 @@ class UpdateUserDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "UpdateUserDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "UpdateUserDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "UpdateUserDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "UpdateUserDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -79,7 +79,7 @@ class UsageByUserDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "UsageByUserDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "UsageByUserDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "UsageByUserDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "UsageByUserDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class UserCountResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "UserCountResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "UserCountResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "UserCountResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "UserCountResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -133,7 +133,7 @@ class UserResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "UserResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "UserResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "UserResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "UserResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -49,7 +49,7 @@ class ValidateAccessTokenResponseDto {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "ValidateAccessTokenResponseDto[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "ValidateAccessTokenResponseDto[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "ValidateAccessTokenResponseDto[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "ValidateAccessTokenResponseDto[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -120,7 +120,7 @@ class {{{classname}}} {
assert(() { assert(() {
requiredKeys.forEach((key) { requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "{{{classname}}}[$key]" is missing from JSON.'); assert(json.containsKey(key), 'Required key "{{{classname}}}[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "{{{classname}}}[$key]" has a null value in JSON.'); // assert(json[key] != null, 'Required key "{{{classname}}}[$key]" has a null value in JSON.');
}); });
return true; return true;
}()); }());

View file

@ -1,5 +1,5 @@
--- native_class.mustache 2023-01-04 09:58:25.683944036 -0500 --- native_class.mustache 2023-06-22 12:00:16.480685565 -0500
+++ native_class1.mustache 2023-01-04 09:59:43.856353945 -0500 +++ native_class1.mustache 2023-06-22 12:01:41.772534371 -0500
@@ -91,14 +91,14 @@ @@ -91,14 +91,14 @@
{{/isDateTime}} {{/isDateTime}}
{{#isNullable}} {{#isNullable}}
@ -17,3 +17,12 @@
} }
{{/defaultValue}} {{/defaultValue}}
{{/required}} {{/required}}
@@ -120,7 +120,7 @@
assert(() {
requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "{{{classname}}}[$key]" is missing from JSON.');
- assert(json[key] != null, 'Required key "{{{classname}}}[$key]" has a null value in JSON.');
+ // assert(json[key] != null, 'Required key "{{{classname}}}[$key]" has a null value in JSON.');
});
return true;
}());