/* tslint:disable */ /* eslint-disable */ /** * Sonatype Guide API * REST API into [Sonatype Guide](https://guide.sonatype.com). * * The version of the OpenAPI document: 202607 * * * 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 OrgConfigRequest */ export interface OrgConfigRequest { /** * * @type {{ [key: string]: any; }} * @memberof OrgConfigRequest */ config: { [key: string]: any; }; /** * * @type {boolean} * @memberof OrgConfigRequest */ developerAccessEnabled?: boolean; /** * * @type {number} * @memberof OrgConfigRequest */ expectedVersion?: number; } /** * Check if a given object implements the OrgConfigRequest interface. */ export function instanceOfOrgConfigRequest(value: object): value is OrgConfigRequest { if (!('config' in value) || value['config'] === undefined) return false; return true; } export function OrgConfigRequestFromJSON(json: any): OrgConfigRequest { return OrgConfigRequestFromJSONTyped(json, false); } export function OrgConfigRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrgConfigRequest { if (json == null) { return json; } return { 'config': json['config'], 'developerAccessEnabled': json['developerAccessEnabled'] == null ? undefined : json['developerAccessEnabled'], 'expectedVersion': json['expectedVersion'] == null ? undefined : json['expectedVersion'], }; } export function OrgConfigRequestToJSON(json: any): OrgConfigRequest { return OrgConfigRequestToJSONTyped(json, false); } export function OrgConfigRequestToJSONTyped(value?: OrgConfigRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'config': value['config'], 'developerAccessEnabled': value['developerAccessEnabled'], 'expectedVersion': value['expectedVersion'], }; }