/* 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 { SMTPConfigurationDTO } from './SMTPConfigurationDTO'; import { SMTPConfigurationDTOFromJSON, SMTPConfigurationDTOFromJSONTyped, SMTPConfigurationDTOToJSON, SMTPConfigurationDTOToJSONTyped, } from './SMTPConfigurationDTO'; /** * * @export * @interface ApplicationWithApplicationCountDTO */ export interface ApplicationWithApplicationCountDTO { /** * * @type {string} * @memberof ApplicationWithApplicationCountDTO */ accountId?: string; /** * * @type {string} * @memberof ApplicationWithApplicationCountDTO */ createdAt?: string; /** * * @type {string} * @memberof ApplicationWithApplicationCountDTO */ description?: string; /** * * @type {number} * @memberof ApplicationWithApplicationCountDTO */ emailTemplatesCount?: number; /** * * @type {string} * @memberof ApplicationWithApplicationCountDTO */ id?: string; /** * * @type {string} * @memberof ApplicationWithApplicationCountDTO */ name?: string; /** * * @type {SMTPConfigurationDTO} * @memberof ApplicationWithApplicationCountDTO */ smtpConfiguration?: SMTPConfigurationDTO; } /** * Check if a given object implements the ApplicationWithApplicationCountDTO interface. */ export function instanceOfApplicationWithApplicationCountDTO(value: object): value is ApplicationWithApplicationCountDTO { return true; } export function ApplicationWithApplicationCountDTOFromJSON(json: any): ApplicationWithApplicationCountDTO { return ApplicationWithApplicationCountDTOFromJSONTyped(json, false); } export function ApplicationWithApplicationCountDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationWithApplicationCountDTO { if (json == null) { return json; } return { 'accountId': json['accountId'] == null ? undefined : json['accountId'], 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'], 'description': json['description'] == null ? undefined : json['description'], 'emailTemplatesCount': json['emailTemplatesCount'] == null ? undefined : json['emailTemplatesCount'], 'id': json['id'] == null ? undefined : json['id'], 'name': json['name'] == null ? undefined : json['name'], 'smtpConfiguration': json['smtpConfiguration'] == null ? undefined : SMTPConfigurationDTOFromJSON(json['smtpConfiguration']), }; } export function ApplicationWithApplicationCountDTOToJSON(json: any): ApplicationWithApplicationCountDTO { return ApplicationWithApplicationCountDTOToJSONTyped(json, false); } export function ApplicationWithApplicationCountDTOToJSONTyped(value?: ApplicationWithApplicationCountDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'accountId': value['accountId'], 'createdAt': value['createdAt'], 'description': value['description'], 'emailTemplatesCount': value['emailTemplatesCount'], 'id': value['id'], 'name': value['name'], 'smtpConfiguration': SMTPConfigurationDTOToJSON(value['smtpConfiguration']), }; }