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

66 lines
1.3 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 StatsRank
*/
export interface StatsRank {
/**
*
* @type {number}
* @memberof StatsRank
*/
old?: number;
/**
*
* @type {number}
* @memberof StatsRank
*/
_new?: number;
}
export function StatsRankFromJSON(json: any): StatsRank {
return StatsRankFromJSONTyped(json, false);
}
export function StatsRankFromJSONTyped(
json: any,
ignoreDiscriminator: boolean
): StatsRank {
if (json === undefined || json === null) {
return json;
}
return {
old: !exists(json, "old") ? undefined : json["old"],
_new: !exists(json, "new") ? undefined : json["new"],
};
}
export function StatsRankToJSON(value?: StatsRank | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
old: value.old,
new: value._new,
};
}