UNPKG

umbraco-management-api-client

Version:

TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)

65 lines (64 loc) 2.36 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Umbraco Management API * This shows all APIs available in this version of Umbraco - including all the legacy apis that are available for backward compatibility * * The version of the OpenAPI document: Latest * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfLanguageResponseModel = instanceOfLanguageResponseModel; exports.LanguageResponseModelFromJSON = LanguageResponseModelFromJSON; exports.LanguageResponseModelFromJSONTyped = LanguageResponseModelFromJSONTyped; exports.LanguageResponseModelToJSON = LanguageResponseModelToJSON; exports.LanguageResponseModelToJSONTyped = LanguageResponseModelToJSONTyped; /** * Check if a given object implements the LanguageResponseModel interface. */ function instanceOfLanguageResponseModel(value) { if (!('name' in value) || value['name'] === undefined) return false; if (!('isDefault' in value) || value['isDefault'] === undefined) return false; if (!('isMandatory' in value) || value['isMandatory'] === undefined) return false; if (!('isoCode' in value) || value['isoCode'] === undefined) return false; return true; } function LanguageResponseModelFromJSON(json) { return LanguageResponseModelFromJSONTyped(json, false); } function LanguageResponseModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'], 'isDefault': json['isDefault'], 'isMandatory': json['isMandatory'], 'fallbackIsoCode': json['fallbackIsoCode'] == null ? undefined : json['fallbackIsoCode'], 'isoCode': json['isoCode'], }; } function LanguageResponseModelToJSON(json) { return LanguageResponseModelToJSONTyped(json, false); } function LanguageResponseModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'isDefault': value['isDefault'], 'isMandatory': value['isMandatory'], 'fallbackIsoCode': value['fallbackIsoCode'], 'isoCode': value['isoCode'], }; }