/* tslint:disable */ /* eslint-disable */ /** * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: * * * 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 ReqMarkNotifRead */ export interface ReqMarkNotifRead { /** * * @type {string} * @memberof ReqMarkNotifRead */ notif_type: string; /** * * @type {number} * @memberof ReqMarkNotifRead */ account_index: number; /** * * @type {number} * @memberof ReqMarkNotifRead */ api_key_index: number; /** * * @type {string} * @memberof ReqMarkNotifRead */ liquidation_ids: string; /** * * @type {string} * @memberof ReqMarkNotifRead */ signature: string; } /** * Check if a given object implements the ReqMarkNotifRead interface. */ export function instanceOfReqMarkNotifRead(value: object): value is ReqMarkNotifRead { if (!('notif_type' in value) || value['notif_type'] === undefined) return false; if (!('account_index' in value) || value['account_index'] === undefined) return false; if (!('api_key_index' in value) || value['api_key_index'] === undefined) return false; if (!('liquidation_ids' in value) || value['liquidation_ids'] === undefined) return false; if (!('signature' in value) || value['signature'] === undefined) return false; return true; } export function ReqMarkNotifReadFromJSON(json: any): ReqMarkNotifRead { return ReqMarkNotifReadFromJSONTyped(json, false); } export function ReqMarkNotifReadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqMarkNotifRead { if (json == null) { return json; } return { 'notif_type': json['notif_type'], 'account_index': json['account_index'], 'api_key_index': json['api_key_index'], 'liquidation_ids': json['liquidation_ids'], 'signature': json['signature'], }; } export function ReqMarkNotifReadToJSON(value?: ReqMarkNotifRead | null): any { if (value == null) { return value; } return { 'notif_type': value['notif_type'], 'account_index': value['account_index'], 'api_key_index': value['api_key_index'], 'liquidation_ids': value['liquidation_ids'], 'signature': value['signature'], }; }