Files
recipes/vue3/src/openapi/models/Localization.ts
2024-08-04 16:59:56 +02:00

69 lines
1.4 KiB
TypeScript

/* tslint:disable */
/* eslint-disable */
/**
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
*
* 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 Localization
*/
export interface Localization {
/**
*
* @type {string}
* @memberof Localization
*/
readonly code: string;
/**
*
* @type {string}
* @memberof Localization
*/
readonly language: string;
}
/**
* Check if a given object implements the Localization interface.
*/
export function instanceOfLocalization(value: object): boolean {
if (!('code' in value)) return false;
if (!('language' in value)) return false;
return true;
}
export function LocalizationFromJSON(json: any): Localization {
return LocalizationFromJSONTyped(json, false);
}
export function LocalizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Localization {
if (json == null) {
return json;
}
return {
'code': json['code'],
'language': json['language'],
};
}
export function LocalizationToJSON(value?: Localization | null): any {
if (value == null) {
return value;
}
return {
};
}