| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 | | Quintiq file version 2.0 |  | #parent: #root |  | StaticMethod Deserialize (LibOpt_Run owner, JSON json) as LibOpt_Scope |  | { |  |   TextBody: |  |   [* |  |     type := json.Get( attribute( LibOpt_Scope, DefinitionName ).Name() ).GetString(); |  |      |  |     result := null( LibOpt_Scope ); |  |     if( type = typeof( LibOpt_ScopeThin ).Name() ) |  |     { |  |       result := LibOpt_ScopeThin::Create( owner ); |  |     } |  |     else |  |     { |  |       result := owner.Scope( relnew, LibOpt_Scope, type ); |  |     } |  |      |  |     result.Deserialize( json ); |  |     result.DeserializeScopeElements( json.Get( method( LibOpt_Scope, ScopeElements ).Name() ) ); |  |      |  |     return result; |  |   *] |  | } | 
 |