/* 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 ClientSetUsernameResponse
 */
export interface ClientSetUsernameResponse {
  /**
   *
   * @type {string}
   * @memberof ClientSetUsernameResponse
   */
  username?: string;
  /**
   *
   * @type {string}
   * @memberof ClientSetUsernameResponse
   */
  usernameLink?: string;
}

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

export function ClientSetUsernameResponseFromJSON(
  json: any,
): ClientSetUsernameResponse {
  return ClientSetUsernameResponseFromJSONTyped(json, false);
}

export function ClientSetUsernameResponseFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): ClientSetUsernameResponse {
  if (json == null) {
    return json;
  }
  return {
    username: json["username"] == null ? undefined : json["username"],
    usernameLink:
      json["username_link"] == null ? undefined : json["username_link"],
  };
}

export function ClientSetUsernameResponseToJSON(
  value?: ClientSetUsernameResponse | null,
): any {
  if (value == null) {
    return value;
  }
  return {
    username: value["username"],
    username_link: value["usernameLink"],
  };
}
