|
5 | 5 | * Juno Public API Docs |
6 | 6 | * |
7 | 7 | * The version of the OpenAPI document: 1.0 |
8 | | - * |
| 8 | + * |
9 | 9 | * |
10 | 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
11 | 11 | * https://openapi-generator.tech |
|
15 | 15 | import { mapValues } from '../runtime'; |
16 | 16 | import type { IssueApiKeyResponse } from './IssueApiKeyResponse'; |
17 | 17 | import { |
18 | | - IssueApiKeyResponseFromJSON, |
19 | | - IssueApiKeyResponseFromJSONTyped, |
20 | | - IssueApiKeyResponseToJSON, |
| 18 | + IssueApiKeyResponseFromJSON, |
| 19 | + IssueApiKeyResponseFromJSONTyped, |
| 20 | + IssueApiKeyResponseToJSON, |
21 | 21 | } from './IssueApiKeyResponse'; |
22 | 22 |
|
23 | 23 | /** |
24 | | - * |
| 24 | + * |
25 | 25 | * @export |
26 | 26 | * @interface GetAllApiKeysResponse |
27 | 27 | */ |
28 | 28 | export interface GetAllApiKeysResponse { |
29 | | - /** |
30 | | - * List of API keys belonging to a project |
31 | | - * @type {Array<IssueApiKeyResponse>} |
32 | | - * @memberof GetAllApiKeysResponse |
33 | | - */ |
34 | | - keys: Array<IssueApiKeyResponse>; |
| 29 | + /** |
| 30 | + * List of API keys belonging to a project |
| 31 | + * @type {Array<IssueApiKeyResponse>} |
| 32 | + * @memberof GetAllApiKeysResponse |
| 33 | + */ |
| 34 | + keys: Array<IssueApiKeyResponse>; |
35 | 35 | } |
36 | 36 |
|
37 | 37 | /** |
38 | 38 | * Check if a given object implements the GetAllApiKeysResponse interface. |
39 | 39 | */ |
40 | | -export function instanceOfGetAllApiKeysResponse(value: object): value is GetAllApiKeysResponse { |
41 | | - if (!('keys' in value) || value['keys'] === undefined) return false; |
42 | | - return true; |
| 40 | +export function instanceOfGetAllApiKeysResponse( |
| 41 | + value: object |
| 42 | +): value is GetAllApiKeysResponse { |
| 43 | + if (!('keys' in value) || value['keys'] === undefined) return false; |
| 44 | + return true; |
43 | 45 | } |
44 | 46 |
|
45 | | -export function GetAllApiKeysResponseFromJSON(json: any): GetAllApiKeysResponse { |
46 | | - return GetAllApiKeysResponseFromJSONTyped(json, false); |
| 47 | +export function GetAllApiKeysResponseFromJSON( |
| 48 | + json: any |
| 49 | +): GetAllApiKeysResponse { |
| 50 | + return GetAllApiKeysResponseFromJSONTyped(json, false); |
47 | 51 | } |
48 | 52 |
|
49 | | -export function GetAllApiKeysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllApiKeysResponse { |
50 | | - if (json == null) { |
51 | | - return json; |
52 | | - } |
53 | | - return { |
54 | | - |
55 | | - 'keys': ((json['keys'] as Array<any>).map(IssueApiKeyResponseFromJSON)), |
56 | | - }; |
| 53 | +export function GetAllApiKeysResponseFromJSONTyped( |
| 54 | + json: any, |
| 55 | + ignoreDiscriminator: boolean |
| 56 | +): GetAllApiKeysResponse { |
| 57 | + if (json == null) { |
| 58 | + return json; |
| 59 | + } |
| 60 | + return { |
| 61 | + keys: (json['keys'] as Array<any>).map(IssueApiKeyResponseFromJSON), |
| 62 | + }; |
57 | 63 | } |
58 | 64 |
|
59 | | -export function GetAllApiKeysResponseToJSON(value?: GetAllApiKeysResponse | null): any { |
60 | | - if (value == null) { |
61 | | - return value; |
62 | | - } |
63 | | - return { |
64 | | - |
65 | | - 'keys': ((value['keys'] as Array<any>).map(IssueApiKeyResponseToJSON)), |
66 | | - }; |
| 65 | +export function GetAllApiKeysResponseToJSON( |
| 66 | + value?: GetAllApiKeysResponse | null |
| 67 | +): any { |
| 68 | + if (value == null) { |
| 69 | + return value; |
| 70 | + } |
| 71 | + return { |
| 72 | + keys: (value['keys'] as Array<any>).map(IssueApiKeyResponseToJSON), |
| 73 | + }; |
67 | 74 | } |
68 | | - |
|
0 commit comments