/* tslint:disable */ /* eslint-disable */ /** * BMLT * BMLT Admin API Documentation * * 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 TokenCredentials */ export interface TokenCredentials { /** * * @type {string} * @memberof TokenCredentials */ username: string; /** * * @type {string} * @memberof TokenCredentials */ password: string; } /** * Check if a given object implements the TokenCredentials interface. */ export function instanceOfTokenCredentials(value: object): value is TokenCredentials { if (!('username' in value) || value['username'] === undefined) return false; if (!('password' in value) || value['password'] === undefined) return false; return true; } export function TokenCredentialsFromJSON(json: any): TokenCredentials { return TokenCredentialsFromJSONTyped(json, false); } export function TokenCredentialsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenCredentials { if (json == null) { return json; } return { 'username': json['username'], 'password': json['password'], }; } export function TokenCredentialsToJSON(json: any): TokenCredentials { return TokenCredentialsToJSONTyped(json, false); } export function TokenCredentialsToJSONTyped(value?: TokenCredentials | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'username': value['username'], 'password': value['password'], }; }