89 lines
1.8 KiB
TypeScript
89 lines
1.8 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* starchart
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
*
|
|
* The version of the OpenAPI document: 0.1.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 { exists, mapValues } from '../runtime';
|
|
import type { Protostar } from './Protostar';
|
|
import {
|
|
ProtostarFromJSON,
|
|
ProtostarFromJSONTyped,
|
|
ProtostarToJSON,
|
|
} from './Protostar';
|
|
import type { Size } from './Size';
|
|
import {
|
|
SizeFromJSON,
|
|
SizeFromJSONTyped,
|
|
SizeToJSON,
|
|
} from './Size';
|
|
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface Star
|
|
*/
|
|
export interface Star {
|
|
/**
|
|
*
|
|
* @type {Protostar}
|
|
* @memberof Star
|
|
*/
|
|
core: Protostar;
|
|
/**
|
|
*
|
|
* @type {Size}
|
|
* @memberof Star
|
|
*/
|
|
size: Size;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the Star interface.
|
|
*/
|
|
export function instanceOfStar(value: object): boolean {
|
|
let isInstance = true;
|
|
isInstance = isInstance && "core" in value;
|
|
isInstance = isInstance && "size" in value;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function StarFromJSON(json: any): Star {
|
|
return StarFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function StarFromJSONTyped(json: any, ignoreDiscriminator: boolean): Star {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'core': ProtostarFromJSON(json['core']),
|
|
'size': SizeFromJSON(json['size']),
|
|
};
|
|
}
|
|
|
|
export function StarToJSON(value?: Star | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'core': ProtostarToJSON(value.core),
|
|
'size': SizeToJSON(value.size),
|
|
};
|
|
}
|
|
|