@easyedu/js-lsm-api 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { GetPortalUserFromJSON, GetPortalUserToJSON, } from './GetPortalUser';
15
+ /**
16
+ * Check if a given object implements the GetPortalUserList interface.
17
+ */
18
+ export function instanceOfGetPortalUserList(value) {
19
+ if (!('page' in value) || value['page'] === undefined)
20
+ return false;
21
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
22
+ return false;
23
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
24
+ return false;
25
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
26
+ return false;
27
+ if (!('items' in value) || value['items'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function GetPortalUserListFromJSON(json) {
32
+ return GetPortalUserListFromJSONTyped(json, false);
33
+ }
34
+ export function GetPortalUserListFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'page': json['page'],
40
+ 'pageSize': json['page_size'],
41
+ 'totalPages': json['total_pages'],
42
+ 'totalItems': json['total_items'],
43
+ 'items': (json['items'].map(GetPortalUserFromJSON)),
44
+ };
45
+ }
46
+ export function GetPortalUserListToJSON(json) {
47
+ return GetPortalUserListToJSONTyped(json, false);
48
+ }
49
+ export function GetPortalUserListToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'page': value['page'],
55
+ 'page_size': value['pageSize'],
56
+ 'total_pages': value['totalPages'],
57
+ 'total_items': value['totalItems'],
58
+ 'items': (value['items'].map(GetPortalUserToJSON)),
59
+ };
60
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PostPortal
16
+ */
17
+ export interface PostPortal {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostPortal
22
+ */
23
+ name: string;
24
+ /**
25
+ * Hex color value for portal background (e.g.,
26
+ * @type {string}
27
+ * @memberof PostPortal
28
+ */
29
+ headerBackgroundColor?: string;
30
+ /**
31
+ * Hex color value for portal text (e.g.,
32
+ * @type {string}
33
+ * @memberof PostPortal
34
+ */
35
+ headerTextColor?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the PostPortal interface.
39
+ */
40
+ export declare function instanceOfPostPortal(value: object): value is PostPortal;
41
+ export declare function PostPortalFromJSON(json: any): PostPortal;
42
+ export declare function PostPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostPortal;
43
+ export declare function PostPortalToJSON(json: any): PostPortal;
44
+ export declare function PostPortalToJSONTyped(value?: PostPortal | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PostPortal interface.
16
+ */
17
+ export function instanceOfPostPortal(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PostPortalFromJSON(json) {
23
+ return PostPortalFromJSONTyped(json, false);
24
+ }
25
+ export function PostPortalFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'name': json['name'],
31
+ 'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
32
+ 'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
33
+ };
34
+ }
35
+ export function PostPortalToJSON(json) {
36
+ return PostPortalToJSONTyped(json, false);
37
+ }
38
+ export function PostPortalToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'name': value['name'],
44
+ 'header_background_color': value['headerBackgroundColor'],
45
+ 'header_text_color': value['headerTextColor'],
46
+ };
47
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PutPortalBranding
16
+ */
17
+ export interface PutPortalBranding {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PutPortalBranding
22
+ */
23
+ name?: string;
24
+ /**
25
+ * Hex color value for portal background (e.g.,
26
+ * @type {string}
27
+ * @memberof PutPortalBranding
28
+ */
29
+ headerBackgroundColor?: string;
30
+ /**
31
+ * Hex color value for portal text (e.g.,
32
+ * @type {string}
33
+ * @memberof PutPortalBranding
34
+ */
35
+ headerTextColor?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the PutPortalBranding interface.
39
+ */
40
+ export declare function instanceOfPutPortalBranding(value: object): value is PutPortalBranding;
41
+ export declare function PutPortalBrandingFromJSON(json: any): PutPortalBranding;
42
+ export declare function PutPortalBrandingFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutPortalBranding;
43
+ export declare function PutPortalBrandingToJSON(json: any): PutPortalBranding;
44
+ export declare function PutPortalBrandingToJSONTyped(value?: PutPortalBranding | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PutPortalBranding interface.
16
+ */
17
+ export function instanceOfPutPortalBranding(value) {
18
+ return true;
19
+ }
20
+ export function PutPortalBrandingFromJSON(json) {
21
+ return PutPortalBrandingFromJSONTyped(json, false);
22
+ }
23
+ export function PutPortalBrandingFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'name': json['name'] == null ? undefined : json['name'],
29
+ 'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
30
+ 'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
31
+ };
32
+ }
33
+ export function PutPortalBrandingToJSON(json) {
34
+ return PutPortalBrandingToJSONTyped(json, false);
35
+ }
36
+ export function PutPortalBrandingToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'name': value['name'],
42
+ 'header_background_color': value['headerBackgroundColor'],
43
+ 'header_text_color': value['headerTextColor'],
44
+ };
45
+ }
@@ -16,6 +16,8 @@ export * from './GetModule';
16
16
  export * from './GetModuleList';
17
17
  export * from './GetPortal';
18
18
  export * from './GetPortalList';
19
+ export * from './GetPortalUser';
20
+ export * from './GetPortalUserList';
19
21
  export * from './GetQuestion';
20
22
  export * from './GetQuestionAnswerChoicesInner';
21
23
  export * from './GetQuestionList';
@@ -88,6 +90,7 @@ export * from './PostCourse';
88
90
  export * from './PostCourseEnrollment';
89
91
  export * from './PostLogin';
90
92
  export * from './PostModule';
93
+ export * from './PostPortal';
91
94
  export * from './PostPortalInvite';
92
95
  export * from './PostQuestion';
93
96
  export * from './PostQuestionAnswerChoicesInner';
@@ -110,6 +113,7 @@ export * from './PostSendResetPassword';
110
113
  export * from './PutContent';
111
114
  export * from './PutCourse';
112
115
  export * from './PutModule';
116
+ export * from './PutPortalBranding';
113
117
  export * from './PutQuestion';
114
118
  export * from './PutQuestionAnswerChoicesInner';
115
119
  export * from './PutQuiz';
@@ -18,6 +18,8 @@ export * from './GetModule';
18
18
  export * from './GetModuleList';
19
19
  export * from './GetPortal';
20
20
  export * from './GetPortalList';
21
+ export * from './GetPortalUser';
22
+ export * from './GetPortalUserList';
21
23
  export * from './GetQuestion';
22
24
  export * from './GetQuestionAnswerChoicesInner';
23
25
  export * from './GetQuestionList';
@@ -90,6 +92,7 @@ export * from './PostCourse';
90
92
  export * from './PostCourseEnrollment';
91
93
  export * from './PostLogin';
92
94
  export * from './PostModule';
95
+ export * from './PostPortal';
93
96
  export * from './PostPortalInvite';
94
97
  export * from './PostQuestion';
95
98
  export * from './PostQuestionAnswerChoicesInner';
@@ -112,6 +115,7 @@ export * from './PostSendResetPassword';
112
115
  export * from './PutContent';
113
116
  export * from './PutCourse';
114
117
  export * from './PutModule';
118
+ export * from './PutPortalBranding';
115
119
  export * from './PutQuestion';
116
120
  export * from './PutQuestionAnswerChoicesInner';
117
121
  export * from './PutQuiz';
@@ -0,0 +1,71 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * A user with their portal access information
14
+ * @export
15
+ * @interface GetPortalUser
16
+ */
17
+ export interface GetPortalUser {
18
+ /**
19
+ * The unique identifier for the user
20
+ * @type {string}
21
+ * @memberof GetPortalUser
22
+ */
23
+ userId: string;
24
+ /**
25
+ * The user's email address
26
+ * @type {string}
27
+ * @memberof GetPortalUser
28
+ */
29
+ email: string;
30
+ /**
31
+ * The user's first name
32
+ * @type {string}
33
+ * @memberof GetPortalUser
34
+ */
35
+ firstName: string;
36
+ /**
37
+ * The user's last name
38
+ * @type {string}
39
+ * @memberof GetPortalUser
40
+ */
41
+ lastName: string;
42
+ /**
43
+ * The user's role in the portal
44
+ * @type {string}
45
+ * @memberof GetPortalUser
46
+ */
47
+ role: GetPortalUserRoleEnum;
48
+ /**
49
+ * Whether the user's portal access is active
50
+ * @type {boolean}
51
+ * @memberof GetPortalUser
52
+ */
53
+ isActive: boolean;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const GetPortalUserRoleEnum: {
59
+ readonly Admin: "Admin";
60
+ readonly Instructor: "Instructor";
61
+ readonly Learner: "Learner";
62
+ };
63
+ export type GetPortalUserRoleEnum = typeof GetPortalUserRoleEnum[keyof typeof GetPortalUserRoleEnum];
64
+ /**
65
+ * Check if a given object implements the GetPortalUser interface.
66
+ */
67
+ export declare function instanceOfGetPortalUser(value: object): value is GetPortalUser;
68
+ export declare function GetPortalUserFromJSON(json: any): GetPortalUser;
69
+ export declare function GetPortalUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalUser;
70
+ export declare function GetPortalUserToJSON(json: any): GetPortalUser;
71
+ export declare function GetPortalUserToJSONTyped(value?: GetPortalUser | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetPortalUserRoleEnum = void 0;
17
+ exports.instanceOfGetPortalUser = instanceOfGetPortalUser;
18
+ exports.GetPortalUserFromJSON = GetPortalUserFromJSON;
19
+ exports.GetPortalUserFromJSONTyped = GetPortalUserFromJSONTyped;
20
+ exports.GetPortalUserToJSON = GetPortalUserToJSON;
21
+ exports.GetPortalUserToJSONTyped = GetPortalUserToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.GetPortalUserRoleEnum = {
26
+ Admin: 'Admin',
27
+ Instructor: 'Instructor',
28
+ Learner: 'Learner'
29
+ };
30
+ /**
31
+ * Check if a given object implements the GetPortalUser interface.
32
+ */
33
+ function instanceOfGetPortalUser(value) {
34
+ if (!('userId' in value) || value['userId'] === undefined)
35
+ return false;
36
+ if (!('email' in value) || value['email'] === undefined)
37
+ return false;
38
+ if (!('firstName' in value) || value['firstName'] === undefined)
39
+ return false;
40
+ if (!('lastName' in value) || value['lastName'] === undefined)
41
+ return false;
42
+ if (!('role' in value) || value['role'] === undefined)
43
+ return false;
44
+ if (!('isActive' in value) || value['isActive'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ function GetPortalUserFromJSON(json) {
49
+ return GetPortalUserFromJSONTyped(json, false);
50
+ }
51
+ function GetPortalUserFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'userId': json['user_id'],
57
+ 'email': json['email'],
58
+ 'firstName': json['first_name'],
59
+ 'lastName': json['last_name'],
60
+ 'role': json['role'],
61
+ 'isActive': json['is_active'],
62
+ };
63
+ }
64
+ function GetPortalUserToJSON(json) {
65
+ return GetPortalUserToJSONTyped(json, false);
66
+ }
67
+ function GetPortalUserToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'user_id': value['userId'],
73
+ 'email': value['email'],
74
+ 'first_name': value['firstName'],
75
+ 'last_name': value['lastName'],
76
+ 'role': value['role'],
77
+ 'is_active': value['isActive'],
78
+ };
79
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { GetPortalUser } from './GetPortalUser';
13
+ /**
14
+ * A list of portal users with pagination information
15
+ * @export
16
+ * @interface GetPortalUserList
17
+ */
18
+ export interface GetPortalUserList {
19
+ /**
20
+ * The current page number
21
+ * @type {number}
22
+ * @memberof GetPortalUserList
23
+ */
24
+ page: number;
25
+ /**
26
+ * The number of items per page
27
+ * @type {number}
28
+ * @memberof GetPortalUserList
29
+ */
30
+ pageSize: number;
31
+ /**
32
+ * The total number of pages
33
+ * @type {number}
34
+ * @memberof GetPortalUserList
35
+ */
36
+ totalPages: number;
37
+ /**
38
+ * The total number of items
39
+ * @type {number}
40
+ * @memberof GetPortalUserList
41
+ */
42
+ totalItems: number;
43
+ /**
44
+ *
45
+ * @type {Array<GetPortalUser>}
46
+ * @memberof GetPortalUserList
47
+ */
48
+ items: Array<GetPortalUser>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GetPortalUserList interface.
52
+ */
53
+ export declare function instanceOfGetPortalUserList(value: object): value is GetPortalUserList;
54
+ export declare function GetPortalUserListFromJSON(json: any): GetPortalUserList;
55
+ export declare function GetPortalUserListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalUserList;
56
+ export declare function GetPortalUserListToJSON(json: any): GetPortalUserList;
57
+ export declare function GetPortalUserListToJSONTyped(value?: GetPortalUserList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetPortalUserList = instanceOfGetPortalUserList;
17
+ exports.GetPortalUserListFromJSON = GetPortalUserListFromJSON;
18
+ exports.GetPortalUserListFromJSONTyped = GetPortalUserListFromJSONTyped;
19
+ exports.GetPortalUserListToJSON = GetPortalUserListToJSON;
20
+ exports.GetPortalUserListToJSONTyped = GetPortalUserListToJSONTyped;
21
+ const GetPortalUser_1 = require("./GetPortalUser");
22
+ /**
23
+ * Check if a given object implements the GetPortalUserList interface.
24
+ */
25
+ function instanceOfGetPortalUserList(value) {
26
+ if (!('page' in value) || value['page'] === undefined)
27
+ return false;
28
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
29
+ return false;
30
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
31
+ return false;
32
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
33
+ return false;
34
+ if (!('items' in value) || value['items'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function GetPortalUserListFromJSON(json) {
39
+ return GetPortalUserListFromJSONTyped(json, false);
40
+ }
41
+ function GetPortalUserListFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'page': json['page'],
47
+ 'pageSize': json['page_size'],
48
+ 'totalPages': json['total_pages'],
49
+ 'totalItems': json['total_items'],
50
+ 'items': (json['items'].map(GetPortalUser_1.GetPortalUserFromJSON)),
51
+ };
52
+ }
53
+ function GetPortalUserListToJSON(json) {
54
+ return GetPortalUserListToJSONTyped(json, false);
55
+ }
56
+ function GetPortalUserListToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'page': value['page'],
62
+ 'page_size': value['pageSize'],
63
+ 'total_pages': value['totalPages'],
64
+ 'total_items': value['totalItems'],
65
+ 'items': (value['items'].map(GetPortalUser_1.GetPortalUserToJSON)),
66
+ };
67
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PostPortal
16
+ */
17
+ export interface PostPortal {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostPortal
22
+ */
23
+ name: string;
24
+ /**
25
+ * Hex color value for portal background (e.g.,
26
+ * @type {string}
27
+ * @memberof PostPortal
28
+ */
29
+ headerBackgroundColor?: string;
30
+ /**
31
+ * Hex color value for portal text (e.g.,
32
+ * @type {string}
33
+ * @memberof PostPortal
34
+ */
35
+ headerTextColor?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the PostPortal interface.
39
+ */
40
+ export declare function instanceOfPostPortal(value: object): value is PostPortal;
41
+ export declare function PostPortalFromJSON(json: any): PostPortal;
42
+ export declare function PostPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostPortal;
43
+ export declare function PostPortalToJSON(json: any): PostPortal;
44
+ export declare function PostPortalToJSONTyped(value?: PostPortal | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPostPortal = instanceOfPostPortal;
17
+ exports.PostPortalFromJSON = PostPortalFromJSON;
18
+ exports.PostPortalFromJSONTyped = PostPortalFromJSONTyped;
19
+ exports.PostPortalToJSON = PostPortalToJSON;
20
+ exports.PostPortalToJSONTyped = PostPortalToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PostPortal interface.
23
+ */
24
+ function instanceOfPostPortal(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function PostPortalFromJSON(json) {
30
+ return PostPortalFromJSONTyped(json, false);
31
+ }
32
+ function PostPortalFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'],
38
+ 'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
39
+ 'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
40
+ };
41
+ }
42
+ function PostPortalToJSON(json) {
43
+ return PostPortalToJSONTyped(json, false);
44
+ }
45
+ function PostPortalToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'name': value['name'],
51
+ 'header_background_color': value['headerBackgroundColor'],
52
+ 'header_text_color': value['headerTextColor'],
53
+ };
54
+ }