working on model select

This commit is contained in:
vabene1111
2024-03-11 19:46:37 +01:00
parent 09dc35228f
commit 18767c54ce
140 changed files with 7676 additions and 5949 deletions

View File

@@ -12,13 +12,13 @@
* Do not edit the class manually.
*/
import { exists, mapValues } from '../runtime';
import { mapValues } from '../runtime';
import type { Automation } from './Automation';
import {
Automation,
AutomationFromJSON,
AutomationFromJSONTyped,
AutomationToJSON,
} from './';
} from './Automation';
/**
*
@@ -37,13 +37,13 @@ export interface PaginatedAutomationList {
* @type {string}
* @memberof PaginatedAutomationList
*/
next?: string | null;
next?: string;
/**
*
* @type {string}
* @memberof PaginatedAutomationList
*/
previous?: string | null;
previous?: string;
/**
*
* @type {Array<Automation>}
@@ -52,37 +52,40 @@ export interface PaginatedAutomationList {
results?: Array<Automation>;
}
/**
* Check if a given object implements the PaginatedAutomationList interface.
*/
export function instanceOfPaginatedAutomationList(value: object): boolean {
return true;
}
export function PaginatedAutomationListFromJSON(json: any): PaginatedAutomationList {
return PaginatedAutomationListFromJSONTyped(json, false);
}
export function PaginatedAutomationListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAutomationList {
if ((json === undefined) || (json === null)) {
if (json == null) {
return json;
}
return {
'count': !exists(json, 'count') ? undefined : json['count'],
'next': !exists(json, 'next') ? undefined : json['next'],
'previous': !exists(json, 'previous') ? undefined : json['previous'],
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(AutomationFromJSON)),
'count': json['count'] == null ? undefined : json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(AutomationFromJSON)),
};
}
export function PaginatedAutomationListToJSON(value?: PaginatedAutomationList | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
if (value == null) {
return value;
}
return {
'count': value.count,
'next': value.next,
'previous': value.previous,
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(AutomationToJSON)),
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(AutomationToJSON)),
};
}