/* tslint:disable */ /* eslint-disable */ /** * metrics-sdk-admin * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 5.4.9 * * * 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'; import type { FacilityLicenseData } from './FacilityLicenseData'; import { FacilityLicenseDataFromJSON, FacilityLicenseDataFromJSONTyped, FacilityLicenseDataToJSON, } from './FacilityLicenseData'; /** * * @export * @interface FacilityLicenseResponse */ export interface FacilityLicenseResponse { /** * * @type {FacilityLicenseData} * @memberof FacilityLicenseResponse */ facilityLicense: FacilityLicenseData; /** * * @type {string} * @memberof FacilityLicenseResponse */ accessToken?: string; /** * * @type {string} * @memberof FacilityLicenseResponse */ refreshToken?: string; } /** * Check if a given object implements the FacilityLicenseResponse interface. */ export function instanceOfFacilityLicenseResponse(value: object): value is FacilityLicenseResponse { if (!('facilityLicense' in value) || value['facilityLicense'] === undefined) return false; return true; } export function FacilityLicenseResponseFromJSON(json: any): FacilityLicenseResponse { return FacilityLicenseResponseFromJSONTyped(json, false); } export function FacilityLicenseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityLicenseResponse { if (json == null) { return json; } return { 'facilityLicense': FacilityLicenseDataFromJSON(json['facilityLicense']), 'accessToken': json['accessToken'] == null ? undefined : json['accessToken'], 'refreshToken': json['refreshToken'] == null ? undefined : json['refreshToken'], }; } export function FacilityLicenseResponseToJSON(value?: FacilityLicenseResponse | null): any { if (value == null) { return value; } return { 'facilityLicense': FacilityLicenseDataToJSON(value['facilityLicense']), 'accessToken': value['accessToken'], 'refreshToken': value['refreshToken'], }; }