/* 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 ReqGetL1Metadata */ export interface ReqGetL1Metadata { /** * made optional to support header auth clients * @type {string} * @memberof ReqGetL1Metadata */ auth?: string; /** * * @type {string} * @memberof ReqGetL1Metadata */ l1_address: string; } /** * Check if a given object implements the ReqGetL1Metadata interface. */ export function instanceOfReqGetL1Metadata(value: object): value is ReqGetL1Metadata { if (!('l1_address' in value) || value['l1_address'] === undefined) return false; return true; } export function ReqGetL1MetadataFromJSON(json: any): ReqGetL1Metadata { return ReqGetL1MetadataFromJSONTyped(json, false); } export function ReqGetL1MetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetL1Metadata { if (json == null) { return json; } return { 'auth': json['auth'] == null ? undefined : json['auth'], 'l1_address': json['l1_address'], }; } export function ReqGetL1MetadataToJSON(value?: ReqGetL1Metadata | null): any { if (value == null) { return value; } return { 'auth': value['auth'], 'l1_address': value['l1_address'], }; }