/* tslint:disable */ /* eslint-disable */ /** * Mubicon v1 API * Api with Swagger, Swashbuckle, and Manual API versioning. * * The version of the OpenAPI document: 1 * Contact: support@mubicloud.com * * 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 LoginResponse */ export interface LoginResponse { /** * * @type {string} * @memberof LoginResponse */ authToken?: string | null; /** * * @type {string} * @memberof LoginResponse */ role?: string | null; /** * * @type {number} * @memberof LoginResponse */ expiresIn?: number; } /** * Check if a given object implements the LoginResponse interface. */ export function instanceOfLoginResponse(value: object): value is LoginResponse { return true; } export function LoginResponseFromJSON(json: any): LoginResponse { return LoginResponseFromJSONTyped(json, false); } export function LoginResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginResponse { if (json == null) { return json; } return { 'authToken': json['auth_token'] == null ? undefined : json['auth_token'], 'role': json['role'] == null ? undefined : json['role'], 'expiresIn': json['expires_in'] == null ? undefined : json['expires_in'], }; } export function LoginResponseToJSON(json: any): LoginResponse { return LoginResponseToJSONTyped(json, false); } export function LoginResponseToJSONTyped(value?: LoginResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'auth_token': value['authToken'], 'role': value['role'], 'expires_in': value['expiresIn'], }; }