UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

52 lines (51 loc) 2.11 kB
/* tslint:disable */ /* eslint-disable */ /** * API v4 * Swagger documentation for API v4 * * The version of the OpenAPI document: 4.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 { instanceOfSoSNotificationEntityMetadataComment, SoSNotificationEntityMetadataCommentFromJSONTyped, SoSNotificationEntityMetadataCommentToJSON, } from './SoSNotificationEntityMetadataComment'; import { instanceOfSoSNotificationEntityMetadataMessage, SoSNotificationEntityMetadataMessageFromJSONTyped, SoSNotificationEntityMetadataMessageToJSON, } from './SoSNotificationEntityMetadataMessage'; export function V4NotificationsCreateNotificationBodyDtoMetadataFromJSON(json) { return V4NotificationsCreateNotificationBodyDtoMetadataFromJSONTyped(json, false); } export function V4NotificationsCreateNotificationBodyDtoMetadataFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } if (typeof json !== 'object') { return json; } if (instanceOfSoSNotificationEntityMetadataComment(json)) { return SoSNotificationEntityMetadataCommentFromJSONTyped(json, true); } if (instanceOfSoSNotificationEntityMetadataMessage(json)) { return SoSNotificationEntityMetadataMessageFromJSONTyped(json, true); } return {}; } export function V4NotificationsCreateNotificationBodyDtoMetadataToJSON(json) { return V4NotificationsCreateNotificationBodyDtoMetadataToJSONTyped(json, false); } export function V4NotificationsCreateNotificationBodyDtoMetadataToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } if (typeof value !== 'object') { return value; } if (instanceOfSoSNotificationEntityMetadataComment(value)) { return SoSNotificationEntityMetadataCommentToJSON(value); } if (instanceOfSoSNotificationEntityMetadataMessage(value)) { return SoSNotificationEntityMetadataMessageToJSON(value); } return {}; }