using Newtonsoft.Json; namespace Piwigo.Client.Contract; public class PagedImages { protected PagedImages() { } public PagedImages(ImagePagingInfo paging, IReadOnlyCollection images) { Paging = paging ?? throw new ArgumentNullException(nameof(paging)); Images = images ?? throw new ArgumentNullException(nameof(images)); } [JsonProperty("paging")] public ImagePagingInfo Paging { get; init; } = null!; [JsonProperty("images")] public IReadOnlyCollection Images { get; init; } = null!; }