/* tslint:disable */ /* eslint-disable */ /** * My API * API documentation for my Laravel app * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { PagingMetadata } from './PagingMetadata'; import { PagingMetadataFromJSON, PagingMetadataFromJSONTyped, PagingMetadataToJSON, PagingMetadataToJSONTyped, } from './PagingMetadata'; import type { SiteNotificationListResource } from './SiteNotificationListResource'; import { SiteNotificationListResourceFromJSON, SiteNotificationListResourceFromJSONTyped, SiteNotificationListResourceToJSON, SiteNotificationListResourceToJSONTyped, } from './SiteNotificationListResource'; /** * * @export * @interface PaginatedSiteNotificationListResourceResponse */ export interface PaginatedSiteNotificationListResourceResponse { /** * * @type {Array} * @memberof PaginatedSiteNotificationListResourceResponse */ data: Array; /** * * @type {PagingMetadata} * @memberof PaginatedSiteNotificationListResourceResponse */ meta: PagingMetadata; } /** * Check if a given object implements the PaginatedSiteNotificationListResourceResponse interface. */ export function instanceOfPaginatedSiteNotificationListResourceResponse(value: object): value is PaginatedSiteNotificationListResourceResponse { if (!('data' in value) || value['data'] === undefined) return false; if (!('meta' in value) || value['meta'] === undefined) return false; return true; } export function PaginatedSiteNotificationListResourceResponseFromJSON(json: any): PaginatedSiteNotificationListResourceResponse { return PaginatedSiteNotificationListResourceResponseFromJSONTyped(json, false); } export function PaginatedSiteNotificationListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSiteNotificationListResourceResponse { if (json == null) { return json; } return { 'data': ((json['data'] as Array).map(SiteNotificationListResourceFromJSON)), 'meta': PagingMetadataFromJSON(json['meta']), }; } export function PaginatedSiteNotificationListResourceResponseToJSON(json: any): PaginatedSiteNotificationListResourceResponse { return PaginatedSiteNotificationListResourceResponseToJSONTyped(json, false); } export function PaginatedSiteNotificationListResourceResponseToJSONTyped(value?: PaginatedSiteNotificationListResourceResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array).map(SiteNotificationListResourceToJSON)), 'meta': PagingMetadataToJSON(value['meta']), }; }