mirror of
https://github.com/Tribufu/TribufuJS
synced 2026-08-10 21:31:04 +00:00
Generate code with openapi-generator (#5)
This commit is contained in:
parent
1a8ffe89bc
commit
be21a2496e
67 changed files with 8992 additions and 3492 deletions
73
src/models/LoginRequest.ts
Normal file
73
src/models/LoginRequest.ts
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* 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 LoginRequest
|
||||
*/
|
||||
export interface LoginRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof LoginRequest
|
||||
*/
|
||||
login?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof LoginRequest
|
||||
*/
|
||||
password?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the LoginRequest interface.
|
||||
*/
|
||||
export function instanceOfLoginRequest(value: object): value is LoginRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function LoginRequestFromJSON(json: any): LoginRequest {
|
||||
return LoginRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'login': json['login'] == null ? undefined : json['login'],
|
||||
'password': json['password'] == null ? undefined : json['password'],
|
||||
};
|
||||
}
|
||||
|
||||
export function LoginRequestToJSON(json: any): LoginRequest {
|
||||
return LoginRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function LoginRequestToJSONTyped(value?: LoginRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'login': value['login'],
|
||||
'password': value['password'],
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue