starchart/web/src/swagger/models/Protostar.ts

76 lines
1.7 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';
/**
* this gets stored in the db, the other stuff is generated using the id as a seed
* @export
* @interface Protostar
*/
export interface Protostar {
/**
* hex code of the stars color
* @type {any}
* @memberof Protostar
*/
color: any | null;
/**
*
* @type {any}
* @memberof Protostar
*/
id: any | null;
}
/**
* Check if a given object implements the Protostar interface.
*/
export function instanceOfProtostar(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "color" in value;
isInstance = isInstance && "id" in value;
return isInstance;
}
export function ProtostarFromJSON(json: any): Protostar {
return ProtostarFromJSONTyped(json, false);
}
export function ProtostarFromJSONTyped(json: any, ignoreDiscriminator: boolean): Protostar {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'color': json['color'],
'id': json['id'],
};
}
export function ProtostarToJSON(value?: Protostar | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'color': value.color,
'id': value.id,
};
}