83 lines
1.8 KiB
TypeScript
83 lines
1.8 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* Dash API
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
*
|
|
* The version of the OpenAPI document: 0.1
|
|
*
|
|
*
|
|
* 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';
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface PlanWeekItem
|
|
*/
|
|
export interface PlanWeekItem {
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof PlanWeekItem
|
|
*/
|
|
item: string;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof PlanWeekItem
|
|
*/
|
|
numTodo?: number;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof PlanWeekItem
|
|
*/
|
|
numDone?: number;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the PlanWeekItem interface.
|
|
*/
|
|
export function instanceOfPlanWeekItem(value: object): boolean {
|
|
let isInstance = true;
|
|
isInstance = isInstance && "item" in value;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function PlanWeekItemFromJSON(json: any): PlanWeekItem {
|
|
return PlanWeekItemFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function PlanWeekItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanWeekItem {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'item': json['item'],
|
|
'numTodo': !exists(json, 'numTodo') ? undefined : json['numTodo'],
|
|
'numDone': !exists(json, 'numDone') ? undefined : json['numDone'],
|
|
};
|
|
}
|
|
|
|
export function PlanWeekItemToJSON(value?: PlanWeekItem | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'item': value.item,
|
|
'numTodo': value.numTodo,
|
|
'numDone': value.numDone,
|
|
};
|
|
}
|
|
|