File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 1212 */
1313
1414
15+ import {
16+ EntityReference ,
17+ transformEntityReferenceToJSON ,
18+ transformJSONToEntityReference
19+ } from './entity-reference' ;
1520
1621
1722export const transformScreenSectionToJSON = function ( value : ScreenSection ) : any {
1823 return {
1924 id : value . id ,
2025 created : value . created ,
2126 name : value . name ,
22- description : value . description
27+ description : value . description ,
28+ parent : value . parent && transformEntityReferenceToJSON ( value . parent )
2329 }
2430}
2531
@@ -28,7 +34,8 @@ export const transformJSONToScreenSection = function (value: any): ScreenSection
2834 id : value . id ,
2935 created : value . created ,
3036 name : value . name ,
31- description : value . description
37+ description : value . description ,
38+ parent : value . parent && transformJSONToEntityReference ( value . parent )
3239 }
3340}
3441
@@ -62,6 +69,12 @@ export interface ScreenSection {
6269 * @memberof ScreenSection
6370 */
6471 description ?: string ;
72+ /**
73+ *
74+ * @type {EntityReference }
75+ * @memberof ScreenSection
76+ */
77+ parent ?: EntityReference ;
6578}
6679
6780
You can’t perform that action at this time.
0 commit comments