/* 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 { AirdropPercentageItem } from './AirdropPercentageItem'; import { AirdropPercentageItemFromJSON, AirdropPercentageItemFromJSONTyped, AirdropPercentageItemToJSON, } from './AirdropPercentageItem'; /** * * @export * @interface AirdropPercentages */ export interface AirdropPercentages { /** * * @type {string} * @memberof AirdropPercentages */ l1_address: string; /** * * @type {Array} * @memberof AirdropPercentages */ percentages: Array; } /** * Check if a given object implements the AirdropPercentages interface. */ export function instanceOfAirdropPercentages(value: object): value is AirdropPercentages { if (!('l1_address' in value) || value['l1_address'] === undefined) return false; if (!('percentages' in value) || value['percentages'] === undefined) return false; return true; } export function AirdropPercentagesFromJSON(json: any): AirdropPercentages { return AirdropPercentagesFromJSONTyped(json, false); } export function AirdropPercentagesFromJSONTyped(json: any, ignoreDiscriminator: boolean): AirdropPercentages { if (json == null) { return json; } return { 'l1_address': json['l1_address'], 'percentages': ((json['percentages'] as Array).map(AirdropPercentageItemFromJSON)), }; } export function AirdropPercentagesToJSON(value?: AirdropPercentages | null): any { if (value == null) { return value; } return { 'l1_address': value['l1_address'], 'percentages': ((value['percentages'] as Array).map(AirdropPercentageItemToJSON)), }; }