/* tslint:disable */ /* eslint-disable */ /** * Keycloak Admin REST API * This is a REST API reference for the Keycloak Admin * * The version of the OpenAPI document: 1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface CertificateRepresentation */ export interface CertificateRepresentation { /** * * @type {string} * @memberof CertificateRepresentation */ certificate?: string; /** * * @type {string} * @memberof CertificateRepresentation */ kid?: string; /** * * @type {string} * @memberof CertificateRepresentation */ privateKey?: string; /** * * @type {string} * @memberof CertificateRepresentation */ publicKey?: string; } export function CertificateRepresentationFromJSON(json: any): CertificateRepresentation { return CertificateRepresentationFromJSONTyped(json, false); } export function CertificateRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateRepresentation { if ((json === undefined) || (json === null)) { return json; } return { 'certificate': !exists(json, 'certificate') ? undefined : json['certificate'], 'kid': !exists(json, 'kid') ? undefined : json['kid'], 'privateKey': !exists(json, 'privateKey') ? undefined : json['privateKey'], 'publicKey': !exists(json, 'publicKey') ? undefined : json['publicKey'], }; } export function CertificateRepresentationToJSON(value?: CertificateRepresentation | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'certificate': value.certificate, 'kid': value.kid, 'privateKey': value.privateKey, 'publicKey': value.publicKey, }; }