/* 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 { SiteNotificationResource } from './SiteNotificationResource'; import { SiteNotificationResourceFromJSON, SiteNotificationResourceFromJSONTyped, SiteNotificationResourceToJSON, SiteNotificationResourceToJSONTyped, } from './SiteNotificationResource'; /** * * @export * @interface PaginatedSiteNotificationResourceResponse */ export interface PaginatedSiteNotificationResourceResponse { /** * * @type {Array} * @memberof PaginatedSiteNotificationResourceResponse */ data: Array; /** * * @type {PagingMetadata} * @memberof PaginatedSiteNotificationResourceResponse */ meta: PagingMetadata; } /** * Check if a given object implements the PaginatedSiteNotificationResourceResponse interface. */ export function instanceOfPaginatedSiteNotificationResourceResponse(value: object): value is PaginatedSiteNotificationResourceResponse { if (!('data' in value) || value['data'] === undefined) return false; if (!('meta' in value) || value['meta'] === undefined) return false; return true; } export function PaginatedSiteNotificationResourceResponseFromJSON(json: any): PaginatedSiteNotificationResourceResponse { return PaginatedSiteNotificationResourceResponseFromJSONTyped(json, false); } export function PaginatedSiteNotificationResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSiteNotificationResourceResponse { if (json == null) { return json; } return { 'data': ((json['data'] as Array).map(SiteNotificationResourceFromJSON)), 'meta': PagingMetadataFromJSON(json['meta']), }; } export function PaginatedSiteNotificationResourceResponseToJSON(json: any): PaginatedSiteNotificationResourceResponse { return PaginatedSiteNotificationResourceResponseToJSONTyped(json, false); } export function PaginatedSiteNotificationResourceResponseToJSONTyped(value?: PaginatedSiteNotificationResourceResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array).map(SiteNotificationResourceToJSON)), 'meta': PagingMetadataToJSON(value['meta']), }; }