UNPKG

umbraco-management-api-client

Version:

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

77 lines (76 loc) 3.4 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.instanceOfMemberTypePropertyTypeReferenceResponseModel = instanceOfMemberTypePropertyTypeReferenceResponseModel; exports.MemberTypePropertyTypeReferenceResponseModelFromJSON = MemberTypePropertyTypeReferenceResponseModelFromJSON; exports.MemberTypePropertyTypeReferenceResponseModelFromJSONTyped = MemberTypePropertyTypeReferenceResponseModelFromJSONTyped; exports.MemberTypePropertyTypeReferenceResponseModelToJSON = MemberTypePropertyTypeReferenceResponseModelToJSON; exports.MemberTypePropertyTypeReferenceResponseModelToJSONTyped = MemberTypePropertyTypeReferenceResponseModelToJSONTyped; const TrackedReferenceMemberTypeModel_1 = require("./TrackedReferenceMemberTypeModel"); /** * Check if a given object implements the MemberTypePropertyTypeReferenceResponseModel interface. */ function instanceOfMemberTypePropertyTypeReferenceResponseModel(value) { if (!('$type' in value) || value['$type'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('memberType' in value) || value['memberType'] === undefined) return false; return true; } function MemberTypePropertyTypeReferenceResponseModelFromJSON(json) { return MemberTypePropertyTypeReferenceResponseModelFromJSONTyped(json, false); } function MemberTypePropertyTypeReferenceResponseModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } if (!ignoreDiscriminator) { if (json['$type'] === 'MemberTypePropertyTypeReferenceResponseModel') { return MemberTypePropertyTypeReferenceResponseModelFromJSONTyped(json, ignoreDiscriminator); } } return { '$type': json['$type'], 'id': json['id'], 'name': json['name'] == null ? undefined : json['name'], 'alias': json['alias'] == null ? undefined : json['alias'], 'memberType': (0, TrackedReferenceMemberTypeModel_1.TrackedReferenceMemberTypeModelFromJSON)(json['memberType']), }; } function MemberTypePropertyTypeReferenceResponseModelToJSON(json) { return MemberTypePropertyTypeReferenceResponseModelToJSONTyped(json, false); } function MemberTypePropertyTypeReferenceResponseModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } if (!ignoreDiscriminator) { switch (value['$type']) { case 'MemberTypePropertyTypeReferenceResponseModel': return MemberTypePropertyTypeReferenceResponseModelToJSONTyped(value, ignoreDiscriminator); default: return value; } } return { '$type': value['$type'], 'id': value['id'], 'name': value['name'], 'alias': value['alias'], 'memberType': (0, TrackedReferenceMemberTypeModel_1.TrackedReferenceMemberTypeModelToJSON)(value['memberType']), }; }