/* 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 ReqGetAccountMetadata */ export interface ReqGetAccountMetadata { /** * * @type {string} * @memberof ReqGetAccountMetadata */ by: ReqGetAccountMetadataByEnum; /** * * @type {string} * @memberof ReqGetAccountMetadata */ value: string; /** * * @type {string} * @memberof ReqGetAccountMetadata */ auth?: string; /** * * @type {string} * @memberof ReqGetAccountMetadata */ cursor?: string; } /** * @export */ export const ReqGetAccountMetadataByEnum = { Index: 'index', L1Address: 'l1_address' } as const; export type ReqGetAccountMetadataByEnum = typeof ReqGetAccountMetadataByEnum[keyof typeof ReqGetAccountMetadataByEnum]; /** * Check if a given object implements the ReqGetAccountMetadata interface. */ export function instanceOfReqGetAccountMetadata(value: object): value is ReqGetAccountMetadata { if (!('by' in value) || value['by'] === undefined) return false; if (!('value' in value) || value['value'] === undefined) return false; return true; } export function ReqGetAccountMetadataFromJSON(json: any): ReqGetAccountMetadata { return ReqGetAccountMetadataFromJSONTyped(json, false); } export function ReqGetAccountMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetAccountMetadata { if (json == null) { return json; } return { 'by': json['by'], 'value': json['value'], 'auth': json['auth'] == null ? undefined : json['auth'], 'cursor': json['cursor'] == null ? undefined : json['cursor'], }; } export function ReqGetAccountMetadataToJSON(value?: ReqGetAccountMetadata | null): any { if (value == null) { return value; } return { 'by': value['by'], 'value': value['value'], 'auth': value['auth'], 'cursor': value['cursor'], }; }