/* tslint:disable */ /* eslint-disable */ /** * authentik Blueprint Registry * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: * Contact: hello@goauthentik.io * * 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 AuthentikVersion */ export interface AuthentikVersion { /** * * @type {string} * @memberof AuthentikVersion */ version: string; /** * * @type {Date} * @memberof AuthentikVersion */ date: Date; /** * * @type {Array} * @memberof AuthentikVersion */ supportedYamlTags: Array; } /** * Check if a given object implements the AuthentikVersion interface. */ export function instanceOfAuthentikVersion(value: object): value is AuthentikVersion { if (!('version' in value) || value['version'] === undefined) return false; if (!('date' in value) || value['date'] === undefined) return false; if (!('supportedYamlTags' in value) || value['supportedYamlTags'] === undefined) return false; return true; } export function AuthentikVersionFromJSON(json: any): AuthentikVersion { return AuthentikVersionFromJSONTyped(json, false); } export function AuthentikVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthentikVersion { if (json == null) { return json; } return { 'version': json['version'], 'date': (new Date(json['date'])), 'supportedYamlTags': json['supported_yaml_tags'], }; } export function AuthentikVersionToJSON(json: any): AuthentikVersion { return AuthentikVersionToJSONTyped(json, false); } export function AuthentikVersionToJSONTyped(value?: AuthentikVersion | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'version': value['version'], 'date': ((value['date']).toISOString()), 'supported_yaml_tags': value['supportedYamlTags'], }; }