@space-cow-media/spellbook-client
Version:
An Open Api generated client for the Commander Spellbook backend REST API.
66 lines (55 loc) • 1.52 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* Commander Spellbook API
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
*
* The version of the OpenAPI document: 4.8.19
*
*
* 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 TokenRefresh
*/
export interface TokenRefresh {
/**
*
* @type {string}
* @memberof TokenRefresh
*/
readonly access: string;
}
/**
* Check if a given object implements the TokenRefresh interface.
*/
export function instanceOfTokenRefresh(value: object): value is TokenRefresh {
if (!('access' in value) || value['access'] === undefined) return false;
return true;
}
export function TokenRefreshFromJSON(json: any): TokenRefresh {
return TokenRefreshFromJSONTyped(json, false);
}
export function TokenRefreshFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenRefresh {
if (json == null) {
return json;
}
return {
'access': json['access'],
};
}
export function TokenRefreshToJSON(json: any): TokenRefresh {
return TokenRefreshToJSONTyped(json, false);
}
export function TokenRefreshToJSONTyped(value?: Omit<TokenRefresh, 'access'> | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
};
}