/* tslint:disable */
/* eslint-disable */
/**
 * Signal Cli REST API
 * This is the Signal Cli REST API documentation.
 *
 * The version of the OpenAPI document: 1.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.js";
/**
 *
 * @export
 * @interface ApiSetUsernameRequest
 */
export interface ApiSetUsernameRequest {
  /**
   *
   * @type {string}
   * @memberof ApiSetUsernameRequest
   */
  username?: string;
}

/**
 * Check if a given object implements the ApiSetUsernameRequest interface.
 */
export function instanceOfApiSetUsernameRequest(
  value: object,
): value is ApiSetUsernameRequest {
  return true;
}

export function ApiSetUsernameRequestFromJSON(
  json: any,
): ApiSetUsernameRequest {
  return ApiSetUsernameRequestFromJSONTyped(json, false);
}

export function ApiSetUsernameRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): ApiSetUsernameRequest {
  if (json == null) {
    return json;
  }
  return {
    username: json["username"] == null ? undefined : json["username"],
  };
}

export function ApiSetUsernameRequestToJSON(
  value?: ApiSetUsernameRequest | null,
): any {
  if (value == null) {
    return value;
  }
  return {
    username: value["username"],
  };
}
