forked from RCOSDP/GakuNinLMS-LTI-MC
/
InlineObject3.ts
104 lines (95 loc) · 2.6 KB
/
InlineObject3.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
/* 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';
import {
ApiV2TopicTopicIdResource,
ApiV2TopicTopicIdResourceFromJSON,
ApiV2TopicTopicIdResourceFromJSONTyped,
ApiV2TopicTopicIdResourceToJSON,
} from './';
/**
*
* @export
* @interface InlineObject3
*/
export interface InlineObject3 {
/**
*
* @type {string}
* @memberof InlineObject3
*/
name?: string;
/**
*
* @type {string}
* @memberof InlineObject3
*/
language?: string;
/**
*
* @type {number}
* @memberof InlineObject3
*/
timeRequired?: number;
/**
*
* @type {boolean}
* @memberof InlineObject3
*/
shared?: boolean;
/**
*
* @type {string}
* @memberof InlineObject3
*/
description?: string;
/**
*
* @type {ApiV2TopicTopicIdResource}
* @memberof InlineObject3
*/
resource?: ApiV2TopicTopicIdResource;
}
export function InlineObject3FromJSON(json: any): InlineObject3 {
return InlineObject3FromJSONTyped(json, false);
}
export function InlineObject3FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject3 {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': !exists(json, 'name') ? undefined : json['name'],
'language': !exists(json, 'language') ? undefined : json['language'],
'timeRequired': !exists(json, 'timeRequired') ? undefined : json['timeRequired'],
'shared': !exists(json, 'shared') ? undefined : json['shared'],
'description': !exists(json, 'description') ? undefined : json['description'],
'resource': !exists(json, 'resource') ? undefined : ApiV2TopicTopicIdResourceFromJSON(json['resource']),
};
}
export function InlineObject3ToJSON(value?: InlineObject3 | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'name': value.name,
'language': value.language,
'timeRequired': value.timeRequired,
'shared': value.shared,
'description': value.description,
'resource': ApiV2TopicTopicIdResourceToJSON(value.resource),
};
}