Files
csgowtf/src/api/models/StatsFlashTotal.ts
2022-03-22 10:08:24 +01:00

74 lines
1.5 KiB
TypeScript

/* tslint:disable */
/* eslint-disable */
/**
* csgoWTF API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
* Contact: api@csgow.tf
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists } from "@/api/runtime";
/**
*
* @export
* @interface StatsFlashTotal
*/
export interface StatsFlashTotal {
/**
*
* @type {number}
* @memberof StatsFlashTotal
*/
self?: number;
/**
*
* @type {number}
* @memberof StatsFlashTotal
*/
team?: number;
/**
*
* @type {number}
* @memberof StatsFlashTotal
*/
enemy?: number;
}
export function StatsFlashTotalFromJSON(json: any): StatsFlashTotal {
return StatsFlashTotalFromJSONTyped(json, false);
}
export function StatsFlashTotalFromJSONTyped(
json: any,
ignoreDiscriminator: boolean
): StatsFlashTotal {
if (json === undefined || json === null) {
return json;
}
return {
self: !exists(json, "self") ? undefined : json["self"],
team: !exists(json, "team") ? undefined : json["team"],
enemy: !exists(json, "enemy") ? undefined : json["enemy"],
};
}
export function StatsFlashTotalToJSON(value?: StatsFlashTotal | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
self: value.self,
team: value.team,
enemy: value.enemy,
};
}