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:
		
							
								
								
									
										28
									
								
								mobile/openapi/lib/model/user_response_dto.dart
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										28
									
								
								mobile/openapi/lib/model/user_response_dto.dart
									
									
									
										generated
									
									
									
								
							@@ -82,22 +82,22 @@ class UserResponseDto {
 | 
			
		||||
  String toString() => 'UserResponseDto[id=$id, email=$email, firstName=$firstName, lastName=$lastName, createdAt=$createdAt, profileImagePath=$profileImagePath, shouldChangePassword=$shouldChangePassword, isAdmin=$isAdmin, deletedAt=$deletedAt, oauthId=$oauthId]';
 | 
			
		||||
 | 
			
		||||
  Map<String, dynamic> toJson() {
 | 
			
		||||
    final _json = <String, dynamic>{};
 | 
			
		||||
      _json[r'id'] = id;
 | 
			
		||||
      _json[r'email'] = email;
 | 
			
		||||
      _json[r'firstName'] = firstName;
 | 
			
		||||
      _json[r'lastName'] = lastName;
 | 
			
		||||
      _json[r'createdAt'] = createdAt;
 | 
			
		||||
      _json[r'profileImagePath'] = profileImagePath;
 | 
			
		||||
      _json[r'shouldChangePassword'] = shouldChangePassword;
 | 
			
		||||
      _json[r'isAdmin'] = isAdmin;
 | 
			
		||||
    if (deletedAt != null) {
 | 
			
		||||
      _json[r'deletedAt'] = deletedAt!.toUtc().toIso8601String();
 | 
			
		||||
    final json = <String, dynamic>{};
 | 
			
		||||
      json[r'id'] = this.id;
 | 
			
		||||
      json[r'email'] = this.email;
 | 
			
		||||
      json[r'firstName'] = this.firstName;
 | 
			
		||||
      json[r'lastName'] = this.lastName;
 | 
			
		||||
      json[r'createdAt'] = this.createdAt;
 | 
			
		||||
      json[r'profileImagePath'] = this.profileImagePath;
 | 
			
		||||
      json[r'shouldChangePassword'] = this.shouldChangePassword;
 | 
			
		||||
      json[r'isAdmin'] = this.isAdmin;
 | 
			
		||||
    if (this.deletedAt != null) {
 | 
			
		||||
      json[r'deletedAt'] = this.deletedAt!.toUtc().toIso8601String();
 | 
			
		||||
    } else {
 | 
			
		||||
      _json[r'deletedAt'] = null;
 | 
			
		||||
      // json[r'deletedAt'] = null;
 | 
			
		||||
    }
 | 
			
		||||
      _json[r'oauthId'] = oauthId;
 | 
			
		||||
    return _json;
 | 
			
		||||
      json[r'oauthId'] = this.oauthId;
 | 
			
		||||
    return json;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /// Returns a new [UserResponseDto] instance and imports its values from
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user