UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
54 lines (53 loc) 1.89 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.21.1 * Contact: contact@emergentmethods.ai * * 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.CreateDomainRequestToJSONTyped = exports.CreateDomainRequestToJSON = exports.CreateDomainRequestFromJSONTyped = exports.CreateDomainRequestFromJSON = exports.instanceOfCreateDomainRequest = void 0; /** * Check if a given object implements the CreateDomainRequest interface. */ function instanceOfCreateDomainRequest(value) { if (!('name' in value) || value['name'] === undefined) return false; return true; } exports.instanceOfCreateDomainRequest = instanceOfCreateDomainRequest; function CreateDomainRequestFromJSON(json) { return CreateDomainRequestFromJSONTyped(json, false); } exports.CreateDomainRequestFromJSON = CreateDomainRequestFromJSON; function CreateDomainRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'], 'isTollbit': json['is_tollbit'] == null ? undefined : json['is_tollbit'], }; } exports.CreateDomainRequestFromJSONTyped = CreateDomainRequestFromJSONTyped; function CreateDomainRequestToJSON(json) { return CreateDomainRequestToJSONTyped(json, false); } exports.CreateDomainRequestToJSON = CreateDomainRequestToJSON; function CreateDomainRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'is_tollbit': value['isTollbit'], }; } exports.CreateDomainRequestToJSONTyped = CreateDomainRequestToJSONTyped;