using System.Text.Json.Serialization; namespace Elternbeirat.PocketBase; /// /// The envelope PocketBase wraps a records list response in. /// /// /// Only is mapped. The paging fields (page, /// perPage, totalItems, totalPages) are ignored, because /// content volumes are small and fetches every /// record in a single request. /// /// /// The record type inside items. /// internal sealed record RecordList { /// /// Gets the records of the requested page. /// /// /// The records, or an empty list if the collection has no matching records. /// [JsonPropertyName("items")] public IReadOnlyList Items { get; init; } = []; }