mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 20:59:28 -05:00
working on model select
This commit is contained in:
@@ -12,13 +12,13 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
import { mapValues } from '../runtime';
|
||||
import type { UserSpace } from './UserSpace';
|
||||
import {
|
||||
UserSpace,
|
||||
UserSpaceFromJSON,
|
||||
UserSpaceFromJSONTyped,
|
||||
UserSpaceToJSON,
|
||||
} from './';
|
||||
} from './UserSpace';
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -37,13 +37,13 @@ export interface PaginatedUserSpaceList {
|
||||
* @type {string}
|
||||
* @memberof PaginatedUserSpaceList
|
||||
*/
|
||||
next?: string | null;
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedUserSpaceList
|
||||
*/
|
||||
previous?: string | null;
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<UserSpace>}
|
||||
@@ -52,37 +52,40 @@ export interface PaginatedUserSpaceList {
|
||||
results?: Array<UserSpace>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedUserSpaceList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedUserSpaceList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedUserSpaceListFromJSON(json: any): PaginatedUserSpaceList {
|
||||
return PaginatedUserSpaceListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedUserSpaceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserSpaceList {
|
||||
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(UserSpaceFromJSON)),
|
||||
'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(UserSpaceFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedUserSpaceListToJSON(value?: PaginatedUserSpaceList | 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(UserSpaceToJSON)),
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(UserSpaceToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user