UNPKG

flowus-api-sdk

Version:

Official TypeScript/JavaScript SDK for FlowUs API - Create, manage, and interact with FlowUs pages, databases, and blocks

57 lines (56 loc) 1.74 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * FlowUs API * FlowUs Developer API * * The version of the OpenAPI document: 1.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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPropertyValueEmail = instanceOfPropertyValueEmail; exports.PropertyValueEmailFromJSON = PropertyValueEmailFromJSON; exports.PropertyValueEmailFromJSONTyped = PropertyValueEmailFromJSONTyped; exports.PropertyValueEmailToJSON = PropertyValueEmailToJSON; exports.PropertyValueEmailToJSONTyped = PropertyValueEmailToJSONTyped; /** * Check if a given object implements the PropertyValueEmail interface. */ function instanceOfPropertyValueEmail(value) { if (!('type' in value) || value['type'] === undefined) return false; if (!('email' in value) || value['email'] === undefined) return false; return true; } function PropertyValueEmailFromJSON(json) { return PropertyValueEmailFromJSONTyped(json, false); } function PropertyValueEmailFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'id': json['id'] == null ? undefined : json['id'], 'type': json['type'], 'email': json['email'], }; } function PropertyValueEmailToJSON(json) { return PropertyValueEmailToJSONTyped(json, false); } function PropertyValueEmailToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'id': value['id'], 'type': value['type'], 'email': value['email'], }; }