mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2026-04-01 00:12:43 +02:00
94 lines
2.0 KiB
TypeScript
94 lines
2.0 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* Ticketing System API
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
*
|
|
* The version of the OpenAPI document: 1.0.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 { mapValues } from '../runtime'
|
|
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface Feature
|
|
*/
|
|
export interface Feature {
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof Feature
|
|
*/
|
|
id: string
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof Feature
|
|
*/
|
|
name: string
|
|
/**
|
|
*
|
|
* @type {Date}
|
|
* @memberof Feature
|
|
*/
|
|
created: Date
|
|
/**
|
|
*
|
|
* @type {Date}
|
|
* @memberof Feature
|
|
*/
|
|
updated: Date
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the Feature interface.
|
|
*/
|
|
export function instanceOfFeature(value: object): value is Feature {
|
|
if (!('id' in value) || value['id'] === undefined) return false
|
|
if (!('name' in value) || value['name'] === undefined) return false
|
|
if (!('created' in value) || value['created'] === undefined) return false
|
|
if (!('updated' in value) || value['updated'] === undefined) return false
|
|
return true
|
|
}
|
|
|
|
export function FeatureFromJSON(json: any): Feature {
|
|
return FeatureFromJSONTyped(json, false)
|
|
}
|
|
|
|
export function FeatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): Feature {
|
|
if (json == null) {
|
|
return json
|
|
}
|
|
return {
|
|
id: json['id'],
|
|
name: json['name'],
|
|
created: new Date(json['created']),
|
|
updated: new Date(json['updated'])
|
|
}
|
|
}
|
|
|
|
export function FeatureToJSON(json: any): Feature {
|
|
return FeatureToJSONTyped(json, false)
|
|
}
|
|
|
|
export function FeatureToJSONTyped(
|
|
value?: Feature | null,
|
|
ignoreDiscriminator: boolean = false
|
|
): any {
|
|
if (value == null) {
|
|
return value
|
|
}
|
|
|
|
return {
|
|
id: value['id'],
|
|
name: value['name'],
|
|
created: value['created'].toISOString(),
|
|
updated: value['updated'].toISOString()
|
|
}
|
|
}
|