/* 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 ApiUpdateGroupRequest
 */
export interface ApiUpdateGroupRequest {
  /**
   *
   * @type {string}
   * @memberof ApiUpdateGroupRequest
   */
  base64Avatar?: string;
  /**
   *
   * @type {string}
   * @memberof ApiUpdateGroupRequest
   */
  description?: string;
  /**
   *
   * @type {string}
   * @memberof ApiUpdateGroupRequest
   */
  name?: string;
}

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

export function ApiUpdateGroupRequestFromJSON(
  json: any,
): ApiUpdateGroupRequest {
  return ApiUpdateGroupRequestFromJSONTyped(json, false);
}

export function ApiUpdateGroupRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): ApiUpdateGroupRequest {
  if (json == null) {
    return json;
  }
  return {
    base64Avatar:
      json["base64_avatar"] == null ? undefined : json["base64_avatar"],
    description: json["description"] == null ? undefined : json["description"],
    name: json["name"] == null ? undefined : json["name"],
  };
}

export function ApiUpdateGroupRequestToJSON(
  value?: ApiUpdateGroupRequest | null,
): any {
  if (value == null) {
    return value;
  }
  return {
    base64_avatar: value["base64Avatar"],
    description: value["description"],
    name: value["name"],
  };
}
