/* 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 EmailTemplateDTO */ export interface EmailTemplateDTO { /** * * @type {string} * @memberof EmailTemplateDTO */ applicationId?: string; /** * * @type {string} * @memberof EmailTemplateDTO */ createdAt?: string; /** * * @type {string} * @memberof EmailTemplateDTO */ id?: string; /** * * @type {string} * @memberof EmailTemplateDTO */ name?: string; /** * * @type {TemplateConfigurationDTO} * @memberof EmailTemplateDTO */ templateConfig?: TemplateConfigurationDTO; /** * * @type {string} * @memberof EmailTemplateDTO */ updatedAt?: string; } /** * Check if a given object implements the EmailTemplateDTO interface. */ export function instanceOfEmailTemplateDTO(value: object): value is EmailTemplateDTO { return true; } export function EmailTemplateDTOFromJSON(json: any): EmailTemplateDTO { return EmailTemplateDTOFromJSONTyped(json, false); } export function EmailTemplateDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailTemplateDTO { if (json == null) { return json; } return { 'applicationId': json['applicationId'] == null ? undefined : json['applicationId'], 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'], 'id': json['id'] == null ? undefined : json['id'], 'name': json['name'] == null ? undefined : json['name'], 'templateConfig': json['templateConfig'] == null ? undefined : TemplateConfigurationDTOFromJSON(json['templateConfig']), 'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'], }; } export function EmailTemplateDTOToJSON(json: any): EmailTemplateDTO { return EmailTemplateDTOToJSONTyped(json, false); } export function EmailTemplateDTOToJSONTyped(value?: EmailTemplateDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'applicationId': value['applicationId'], 'createdAt': value['createdAt'], 'id': value['id'], 'name': value['name'], 'templateConfig': TemplateConfigurationDTOToJSON(value['templateConfig']), 'updatedAt': value['updatedAt'], }; }