/* tslint:disable */ /* eslint-disable */ /** * EAS 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. */ import { mapValues } from '../runtime'; /** * * @export * @interface AuthCreateSubscriptionRequest */ export interface AuthCreateSubscriptionRequest { /** * The subscription lookup key (from subscription tiers) * @type {string} * @memberof AuthCreateSubscriptionRequest */ subscriptionKey: string; /** * URL to redirect back to after successful subscription * @type {string} * @memberof AuthCreateSubscriptionRequest */ drawUrl: string; } /** * Check if a given object implements the AuthCreateSubscriptionRequest interface. */ export function instanceOfAuthCreateSubscriptionRequest(value: object): value is AuthCreateSubscriptionRequest { if (!('subscriptionKey' in value) || value['subscriptionKey'] === undefined) return false; if (!('drawUrl' in value) || value['drawUrl'] === undefined) return false; return true; } export function AuthCreateSubscriptionRequestFromJSON(json: any): AuthCreateSubscriptionRequest { return AuthCreateSubscriptionRequestFromJSONTyped(json, false); } export function AuthCreateSubscriptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthCreateSubscriptionRequest { if (json == null) { return json; } return { 'subscriptionKey': json['subscription_key'], 'drawUrl': json['draw_url'], }; } export function AuthCreateSubscriptionRequestToJSON(value?: AuthCreateSubscriptionRequest | null): any { if (value == null) { return value; } return { 'subscription_key': value['subscriptionKey'], 'draw_url': value['drawUrl'], }; }