/* 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'; import type { AirdropAllocationItem } from './AirdropAllocationItem'; import { AirdropAllocationItemFromJSON, AirdropAllocationItemFromJSONTyped, AirdropAllocationItemToJSON, } from './AirdropAllocationItem'; /** * * @export * @interface AirdropAllocations */ export interface AirdropAllocations { /** * * @type {string} * @memberof AirdropAllocations */ l1_address: string; /** * * @type {Array} * @memberof AirdropAllocations */ allocations: Array; } /** * Check if a given object implements the AirdropAllocations interface. */ export function instanceOfAirdropAllocations(value: object): value is AirdropAllocations { if (!('l1_address' in value) || value['l1_address'] === undefined) return false; if (!('allocations' in value) || value['allocations'] === undefined) return false; return true; } export function AirdropAllocationsFromJSON(json: any): AirdropAllocations { return AirdropAllocationsFromJSONTyped(json, false); } export function AirdropAllocationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AirdropAllocations { if (json == null) { return json; } return { 'l1_address': json['l1_address'], 'allocations': ((json['allocations'] as Array).map(AirdropAllocationItemFromJSON)), }; } export function AirdropAllocationsToJSON(value?: AirdropAllocations | null): any { if (value == null) { return value; } return { 'l1_address': value['l1_address'], 'allocations': ((value['allocations'] as Array).map(AirdropAllocationItemToJSON)), }; }