-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathauthorized-response.ts
More file actions
75 lines (65 loc) · 1.89 KB
/
authorized-response.ts
File metadata and controls
75 lines (65 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/* tslint:disable */
/* eslint-disable */
/**
* Schulcloud-Verbund-Software Server API
* This is v3 of Schulcloud-Verbund-Software Server. Checkout /docs for v1.
*
* The version of the OpenAPI document: 3.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.js';
/**
*
* @export
* @interface AuthorizedResponse
*/
export interface AuthorizedResponse {
/**
*
* @type {string}
* @memberof AuthorizedResponse
*/
userId: string;
/**
*
* @type {boolean}
* @memberof AuthorizedResponse
*/
isAuthorized: boolean;
}
/**
* Check if a given object implements the AuthorizedResponse interface.
*/
export function instanceOfAuthorizedResponse(value: object): value is AuthorizedResponse {
if (!('userId' in value) || value['userId'] === undefined) return false;
if (!('isAuthorized' in value) || value['isAuthorized'] === undefined) return false;
return true;
}
export function AuthorizedResponseFromJSON(json: any): AuthorizedResponse {
return AuthorizedResponseFromJSONTyped(json, false);
}
export function AuthorizedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthorizedResponse {
if (json == null) {
return json;
}
return {
'userId': json['userId'],
'isAuthorized': json['isAuthorized'],
};
}
export function AuthorizedResponseToJSON(json: any): AuthorizedResponse {
return AuthorizedResponseToJSONTyped(json, false);
}
export function AuthorizedResponseToJSONTyped(value?: AuthorizedResponse | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'userId': value['userId'],
'isAuthorized': value['isAuthorized'],
};
}