/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2026.2.3-rc1 * 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 SoftwareRequest */ export interface SoftwareRequest { /** * * @type {string} * @memberof SoftwareRequest */ name: string; /** * * @type {string} * @memberof SoftwareRequest */ version?: string; /** * * @type {string} * @memberof SoftwareRequest */ source: string; /** * * @type {string} * @memberof SoftwareRequest */ path?: string; } /** * Check if a given object implements the SoftwareRequest interface. */ export function instanceOfSoftwareRequest(value: object): value is SoftwareRequest { if (!('name' in value) || value['name'] === undefined) return false; if (!('source' in value) || value['source'] === undefined) return false; return true; } export function SoftwareRequestFromJSON(json: any): SoftwareRequest { return SoftwareRequestFromJSONTyped(json, false); } export function SoftwareRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SoftwareRequest { if (json == null) { return json; } return { 'name': json['name'], 'version': json['version'] == null ? undefined : json['version'], 'source': json['source'], 'path': json['path'] == null ? undefined : json['path'], }; } export function SoftwareRequestToJSON(json: any): SoftwareRequest { return SoftwareRequestToJSONTyped(json, false); } export function SoftwareRequestToJSONTyped(value?: SoftwareRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'version': value['version'], 'source': value['source'], 'path': value['path'], }; }