/* 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'; /** * * @export * @interface LoginAdminRequest */ export interface LoginAdminRequest { /** * * @type {string} * @memberof LoginAdminRequest */ email: string; /** * * @type {string} * @memberof LoginAdminRequest */ password: string; } /** * Check if a given object implements the LoginAdminRequest interface. */ export function instanceOfLoginAdminRequest(value: object): value is LoginAdminRequest { if (!('email' in value) || value['email'] === undefined) return false; if (!('password' in value) || value['password'] === undefined) return false; return true; } export function LoginAdminRequestFromJSON(json: any): LoginAdminRequest { return LoginAdminRequestFromJSONTyped(json, false); } export function LoginAdminRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAdminRequest { if (json == null) { return json; } return { 'email': json['email'], 'password': json['password'], }; } export function LoginAdminRequestToJSON(json: any): LoginAdminRequest { return LoginAdminRequestToJSONTyped(json, false); } export function LoginAdminRequestToJSONTyped(value?: LoginAdminRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'email': value['email'], 'password': value['password'], }; }