/* 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 { AdminResource } from './AdminResource'; import { AdminResourceFromJSON, AdminResourceFromJSONTyped, AdminResourceToJSON, AdminResourceToJSONTyped, } from './AdminResource'; /** * * @export * @interface AdminLoginResponseResource */ export interface AdminLoginResponseResource { /** * * @type {string} * @memberof AdminLoginResponseResource */ token: string; /** * * @type {AdminResource} * @memberof AdminLoginResponseResource */ admin: AdminResource | null; } /** * Check if a given object implements the AdminLoginResponseResource interface. */ export function instanceOfAdminLoginResponseResource(value: object): value is AdminLoginResponseResource { if (!('token' in value) || value['token'] === undefined) return false; if (!('admin' in value) || value['admin'] === undefined) return false; return true; } export function AdminLoginResponseResourceFromJSON(json: any): AdminLoginResponseResource { return AdminLoginResponseResourceFromJSONTyped(json, false); } export function AdminLoginResponseResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminLoginResponseResource { if (json == null) { return json; } return { 'token': json['token'], 'admin': AdminResourceFromJSON(json['admin']), }; } export function AdminLoginResponseResourceToJSON(json: any): AdminLoginResponseResource { return AdminLoginResponseResourceToJSONTyped(json, false); } export function AdminLoginResponseResourceToJSONTyped(value?: AdminLoginResponseResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'token': value['token'], 'admin': AdminResourceToJSON(value['admin']), }; }