/* 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 CredentialsHostViewModel */ export interface CredentialsHostViewModel { /** * * @type {string} * @memberof CredentialsHostViewModel */ login: string; /** * * @type {string} * @memberof CredentialsHostViewModel */ password: string; /** * * @type {string} * @memberof CredentialsHostViewModel */ host: string; } /** * Check if a given object implements the CredentialsHostViewModel interface. */ export function instanceOfCredentialsHostViewModel(value: object): value is CredentialsHostViewModel { if (!('login' in value) || value['login'] === undefined) return false; if (!('password' in value) || value['password'] === undefined) return false; if (!('host' in value) || value['host'] === undefined) return false; return true; } export function CredentialsHostViewModelFromJSON(json: any): CredentialsHostViewModel { return CredentialsHostViewModelFromJSONTyped(json, false); } export function CredentialsHostViewModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialsHostViewModel { if (json == null) { return json; } return { 'login': json['Login'], 'password': json['Password'], 'host': json['Host'], }; } export function CredentialsHostViewModelToJSON(json: any): CredentialsHostViewModel { return CredentialsHostViewModelToJSONTyped(json, false); } export function CredentialsHostViewModelToJSONTyped(value?: CredentialsHostViewModel | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'Login': value['login'], 'Password': value['password'], 'Host': value['host'], }; }