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