/* 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 ApiChangeGroupAdminsRequest
 */
export interface ApiChangeGroupAdminsRequest {
  /**
   *
   * @type {Array<string>}
   * @memberof ApiChangeGroupAdminsRequest
   */
  admins?: Array<string>;
}

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

export function ApiChangeGroupAdminsRequestFromJSON(
  json: any,
): ApiChangeGroupAdminsRequest {
  return ApiChangeGroupAdminsRequestFromJSONTyped(json, false);
}

export function ApiChangeGroupAdminsRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): ApiChangeGroupAdminsRequest {
  if (json == null) {
    return json;
  }
  return {
    admins: json["admins"] == null ? undefined : json["admins"],
  };
}

export function ApiChangeGroupAdminsRequestToJSON(
  value?: ApiChangeGroupAdminsRequest | null,
): any {
  if (value == null) {
    return value;
  }
  return {
    admins: value["admins"],
  };
}
