/* tslint:disable */ /* eslint-disable */ /** * Tuix Email Service * Service to manage Tuix Email * * The version of the OpenAPI document: 0.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { TemplateConfigurationDTO } from './TemplateConfigurationDTO'; import { TemplateConfigurationDTOFromJSON, TemplateConfigurationDTOFromJSONTyped, TemplateConfigurationDTOToJSON, TemplateConfigurationDTOToJSONTyped, } from './TemplateConfigurationDTO'; /** * * @export * @interface EmailTemplateContentDTO */ export interface EmailTemplateContentDTO { /** * * @type {string} * @memberof EmailTemplateContentDTO */ applicationId?: string; /** * * @type {string} * @memberof EmailTemplateContentDTO */ content?: string; /** * * @type {string} * @memberof EmailTemplateContentDTO */ id?: string; /** * * @type {string} * @memberof EmailTemplateContentDTO */ name?: string; /** * * @type {TemplateConfigurationDTO} * @memberof EmailTemplateContentDTO */ templateConfig?: TemplateConfigurationDTO; } /** * Check if a given object implements the EmailTemplateContentDTO interface. */ export function instanceOfEmailTemplateContentDTO(value: object): value is EmailTemplateContentDTO { return true; } export function EmailTemplateContentDTOFromJSON(json: any): EmailTemplateContentDTO { return EmailTemplateContentDTOFromJSONTyped(json, false); } export function EmailTemplateContentDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailTemplateContentDTO { if (json == null) { return json; } return { 'applicationId': json['applicationId'] == null ? undefined : json['applicationId'], 'content': json['content'] == null ? undefined : json['content'], 'id': json['id'] == null ? undefined : json['id'], 'name': json['name'] == null ? undefined : json['name'], 'templateConfig': json['templateConfig'] == null ? undefined : TemplateConfigurationDTOFromJSON(json['templateConfig']), }; } export function EmailTemplateContentDTOToJSON(json: any): EmailTemplateContentDTO { return EmailTemplateContentDTOToJSONTyped(json, false); } export function EmailTemplateContentDTOToJSONTyped(value?: EmailTemplateContentDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'applicationId': value['applicationId'], 'content': value['content'], 'id': value['id'], 'name': value['name'], 'templateConfig': TemplateConfigurationDTOToJSON(value['templateConfig']), }; }