/* tslint:disable */ /* eslint-disable */ /** * Fabric API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export */ export const UsageAmountType = { Consumed: 'consumed', Remaining: 'remaining' } as const; export type UsageAmountType = typeof UsageAmountType[keyof typeof UsageAmountType]; export function instanceOfUsageAmountType(value: any): boolean { for (const key in UsageAmountType) { if (Object.prototype.hasOwnProperty.call(UsageAmountType, key)) { if (UsageAmountType[key as keyof typeof UsageAmountType] === value) { return true; } } } return false; } export function UsageAmountTypeFromJSON(json: any): UsageAmountType { return UsageAmountTypeFromJSONTyped(json, false); } export function UsageAmountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageAmountType { return json as UsageAmountType; } export function UsageAmountTypeToJSON(value?: UsageAmountType | null): any { return value as any; } export function UsageAmountTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): UsageAmountType { return value as UsageAmountType; }