/* 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 AuthRequestMagicLinkRequest */ export interface AuthRequestMagicLinkRequest { /** * User's email address * @type {string} * @memberof AuthRequestMagicLinkRequest */ email: string; /** * URL to redirect to after successful login * @type {string} * @memberof AuthRequestMagicLinkRequest */ returnUrl: string; } /** * Check if a given object implements the AuthRequestMagicLinkRequest interface. */ export function instanceOfAuthRequestMagicLinkRequest(value: object): value is AuthRequestMagicLinkRequest { if (!('email' in value) || value['email'] === undefined) return false; if (!('returnUrl' in value) || value['returnUrl'] === undefined) return false; return true; } export function AuthRequestMagicLinkRequestFromJSON(json: any): AuthRequestMagicLinkRequest { return AuthRequestMagicLinkRequestFromJSONTyped(json, false); } export function AuthRequestMagicLinkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthRequestMagicLinkRequest { if (json == null) { return json; } return { 'email': json['email'], 'returnUrl': json['return_url'], }; } export function AuthRequestMagicLinkRequestToJSON(value?: AuthRequestMagicLinkRequest | null): any { if (value == null) { return value; } return { 'email': value['email'], 'return_url': value['returnUrl'], }; }