/* 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 { PermissionResource } from './PermissionResource'; import { PermissionResourceFromJSON, PermissionResourceFromJSONTyped, PermissionResourceToJSON, PermissionResourceToJSONTyped, } from './PermissionResource'; /** * * @export * @interface PermissionResourceArrayResponse */ export interface PermissionResourceArrayResponse { /** * * @type {Array} * @memberof PermissionResourceArrayResponse */ data?: Array; } /** * Check if a given object implements the PermissionResourceArrayResponse interface. */ export function instanceOfPermissionResourceArrayResponse(value: object): value is PermissionResourceArrayResponse { return true; } export function PermissionResourceArrayResponseFromJSON(json: any): PermissionResourceArrayResponse { return PermissionResourceArrayResponseFromJSONTyped(json, false); } export function PermissionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionResourceArrayResponse { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : ((json['data'] as Array).map(PermissionResourceFromJSON)), }; } export function PermissionResourceArrayResponseToJSON(json: any): PermissionResourceArrayResponse { return PermissionResourceArrayResponseToJSONTyped(json, false); } export function PermissionResourceArrayResponseToJSONTyped(value?: PermissionResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': value['data'] == null ? undefined : ((value['data'] as Array).map(PermissionResourceToJSON)), }; }