forked from RCOSDP/GakuNinLMS-LTI-MC
/
InlineResponse200.ts
113 lines (105 loc) · 2.48 KB
/
InlineResponse200.ts
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/* tslint:disable */
/* eslint-disable */
/**
* chibichilo-server
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.1.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 { exists, mapValues } from '../runtime';
/**
*
* @export
* @interface InlineResponse200
*/
export interface InlineResponse200 {
/**
*
* @type {string}
* @memberof InlineResponse200
*/
consumerId: string;
/**
*
* @type {string}
* @memberof InlineResponse200
*/
id: string;
/**
*
* @type {number}
* @memberof InlineResponse200
*/
authorId: number;
/**
*
* @type {string}
* @memberof InlineResponse200
*/
contextId: string;
/**
*
* @type {string}
* @memberof InlineResponse200
*/
contextTitle: string;
/**
*
* @type {string}
* @memberof InlineResponse200
*/
contextLabel: string;
/**
*
* @type {string}
* @memberof InlineResponse200
*/
title: string;
/**
*
* @type {number}
* @memberof InlineResponse200
*/
bookId: number;
}
export function InlineResponse200FromJSON(json: any): InlineResponse200 {
return InlineResponse200FromJSONTyped(json, false);
}
export function InlineResponse200FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineResponse200 {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'consumerId': json['consumerId'],
'id': json['id'],
'authorId': json['authorId'],
'contextId': json['contextId'],
'contextTitle': json['contextTitle'],
'contextLabel': json['contextLabel'],
'title': json['title'],
'bookId': json['bookId'],
};
}
export function InlineResponse200ToJSON(value?: InlineResponse200 | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'consumerId': value.consumerId,
'id': value.id,
'authorId': value.authorId,
'contextId': value.contextId,
'contextTitle': value.contextTitle,
'contextLabel': value.contextLabel,
'title': value.title,
'bookId': value.bookId,
};
}