/* 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 CredentialsViewModel */ export interface CredentialsViewModel { /** * * @type {string} * @memberof CredentialsViewModel */ login: string; /** * * @type {string} * @memberof CredentialsViewModel */ password: string; } /** * Check if a given object implements the CredentialsViewModel interface. */ export function instanceOfCredentialsViewModel(value: object): value is CredentialsViewModel { if (!('login' in value) || value['login'] === undefined) return false; if (!('password' in value) || value['password'] === undefined) return false; return true; } export function CredentialsViewModelFromJSON(json: any): CredentialsViewModel { return CredentialsViewModelFromJSONTyped(json, false); } export function CredentialsViewModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialsViewModel { if (json == null) { return json; } return { 'login': json['Login'], 'password': json['Password'], }; } export function CredentialsViewModelToJSON(json: any): CredentialsViewModel { return CredentialsViewModelToJSONTyped(json, false); } export function CredentialsViewModelToJSONTyped(value?: CredentialsViewModel | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'Login': value['login'], 'Password': value['password'], }; }