Skip to content

Commit

Permalink
Merge branch 'main' into fix/banner-link (generated)
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
  • Loading branch information
algolia-bot committed Oct 10, 2024
1 parent fcd1161 commit 136c54d
Show file tree
Hide file tree
Showing 98 changed files with 281 additions and 2,136 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public BannerImage()
/// Gets or Sets Urls
/// </summary>
[JsonPropertyName("urls")]
public BannerImageUrl Urls { get; set; }
public List<BannerImageUrl> Urls { get; set; }

/// <summary>
/// Gets or Sets Title
Expand Down Expand Up @@ -71,7 +71,7 @@ public override bool Equals(object obj)
}

return
(Urls == input.Urls || (Urls != null && Urls.Equals(input.Urls))) &&
(Urls == input.Urls || Urls != null && input.Urls != null && Urls.SequenceEqual(input.Urls)) &&
(Title == input.Title || (Title != null && Title.Equals(input.Title)));
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ public Widgets()
}

/// <summary>
/// Gets or Sets Banners
/// banners defined in the merchandising studio for the given search.
/// </summary>
/// <value>banners defined in the merchandising studio for the given search.</value>
[JsonPropertyName("banners")]
public Banners Banners { get; set; }
public List<Banner> Banners { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down Expand Up @@ -64,7 +65,7 @@ public override bool Equals(object obj)
}

return
(Banners == input.Banners || (Banners != null && Banners.Equals(input.Banners)));
(Banners == input.Banners || Banners != null && input.Banners != null && Banners.SequenceEqual(input.Banners));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public BannerImage()
/// Gets or Sets Urls
/// </summary>
[JsonPropertyName("urls")]
public BannerImageUrl Urls { get; set; }
public List<BannerImageUrl> Urls { get; set; }

/// <summary>
/// Gets or Sets Title
Expand Down Expand Up @@ -71,7 +71,7 @@ public override bool Equals(object obj)
}

return
(Urls == input.Urls || (Urls != null && Urls.Equals(input.Urls))) &&
(Urls == input.Urls || Urls != null && input.Urls != null && Urls.SequenceEqual(input.Urls)) &&
(Title == input.Title || (Title != null && Title.Equals(input.Title)));
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ public Widgets()
}

/// <summary>
/// Gets or Sets Banners
/// banners defined in the merchandising studio for the given search.
/// </summary>
/// <value>banners defined in the merchandising studio for the given search.</value>
[JsonPropertyName("banners")]
public Banners Banners { get; set; }
public List<Banner> Banners { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down Expand Up @@ -64,7 +65,7 @@ public override bool Equals(object obj)
}

return
(Banners == input.Banners || (Banners != null && Banners.Equals(input.Banners)));
(Banners == input.Banners || Banners != null && input.Banners != null && Banners.SequenceEqual(input.Banners));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export 'src/model/banner.dart';
export 'src/model/banner_image.dart';
export 'src/model/banner_image_url.dart';
export 'src/model/banner_link.dart';
export 'src/model/banners.dart';
export 'src/model/base_get_api_key_response.dart';
export 'src/model/base_index_settings.dart';
export 'src/model/base_recommend_index_settings.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import 'package:algoliasearch/src/model/banner.dart';
import 'package:algoliasearch/src/model/banner_image.dart';
import 'package:algoliasearch/src/model/banner_image_url.dart';
import 'package:algoliasearch/src/model/banner_link.dart';
import 'package:algoliasearch/src/model/banners.dart';
import 'package:algoliasearch/src/model/base_get_api_key_response.dart';
import 'package:algoliasearch/src/model/base_index_settings.dart';
import 'package:algoliasearch/src/model/base_recommend_index_settings.dart';
Expand Down Expand Up @@ -146,8 +145,6 @@ ReturnType deserialize<ReturnType, BaseType>(dynamic value, String targetType,
as ReturnType;
case 'BannerLink':
return BannerLink.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'Banners':
return Banners.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'BaseGetApiKeyResponse':
return BaseGetApiKeyResponse.fromJson(value as Map<String, dynamic>)
as ReturnType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class BannerImage {
});

@JsonKey(name: r'urls')
final BannerImageUrl? urls;
final List<BannerImageUrl>? urls;

@JsonKey(name: r'title')
final String? title;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 136c54d

Please sign in to comment.