/* tslint:disable */ /* eslint-disable */ /** * metrics-sdk-admin * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 5.4.9 * * * 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'; /** * * @export * @interface PrimaryEmailAddressData */ export interface PrimaryEmailAddressData { /** * * @type {number} * @memberof PrimaryEmailAddressData */ userId: number; /** * * @type {number} * @memberof PrimaryEmailAddressData */ emailAddressId: number; } /** * Check if a given object implements the PrimaryEmailAddressData interface. */ export function instanceOfPrimaryEmailAddressData(value: object): value is PrimaryEmailAddressData { if (!('userId' in value) || value['userId'] === undefined) return false; if (!('emailAddressId' in value) || value['emailAddressId'] === undefined) return false; return true; } export function PrimaryEmailAddressDataFromJSON(json: any): PrimaryEmailAddressData { return PrimaryEmailAddressDataFromJSONTyped(json, false); } export function PrimaryEmailAddressDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrimaryEmailAddressData { if (json == null) { return json; } return { 'userId': json['userId'], 'emailAddressId': json['emailAddressId'], }; } export function PrimaryEmailAddressDataToJSON(value?: PrimaryEmailAddressData | null): any { if (value == null) { return value; } return { 'userId': value['userId'], 'emailAddressId': value['emailAddressId'], }; }