@@ -17,7 +17,7 @@ public required string? Description
17
17
get
18
18
{
19
19
if ( ! this . Properties . TryGetValue ( "description" , out JsonElement element ) )
20
- throw new ArgumentOutOfRangeException ( "description" , "Missing required argument" ) ;
20
+ return null ;
21
21
22
22
return JsonSerializer . Deserialize < string ? > ( element , ModelBase . SerializerOptions ) ;
23
23
}
@@ -32,10 +32,7 @@ public required double? ExecutionTime
32
32
get
33
33
{
34
34
if ( ! this . Properties . TryGetValue ( "execution_time" , out JsonElement element ) )
35
- throw new ArgumentOutOfRangeException (
36
- "execution_time" ,
37
- "Missing required argument"
38
- ) ;
35
+ return null ;
39
36
40
37
return JsonSerializer . Deserialize < double ? > ( element , ModelBase . SerializerOptions ) ;
41
38
}
@@ -50,7 +47,7 @@ public required string? JobID
50
47
get
51
48
{
52
49
if ( ! this . Properties . TryGetValue ( "job_id" , out JsonElement element ) )
53
- throw new ArgumentOutOfRangeException ( "job_id" , "Missing required argument" ) ;
50
+ return null ;
54
51
55
52
return JsonSerializer . Deserialize < string ? > ( element , ModelBase . SerializerOptions ) ;
56
53
}
@@ -65,10 +62,7 @@ public required long? NumberOfAgents
65
62
get
66
63
{
67
64
if ( ! this . Properties . TryGetValue ( "number_of_agents" , out JsonElement element ) )
68
- throw new ArgumentOutOfRangeException (
69
- "number_of_agents" ,
70
- "Missing required argument"
71
- ) ;
65
+ return null ;
72
66
73
67
return JsonSerializer . Deserialize < long ? > ( element , ModelBase . SerializerOptions ) ;
74
68
}
@@ -98,7 +92,7 @@ public required string? ServiceTier
98
92
get
99
93
{
100
94
if ( ! this . Properties . TryGetValue ( "service_tier" , out JsonElement element ) )
101
- throw new ArgumentOutOfRangeException ( "service_tier" , "Missing required argument" ) ;
95
+ return null ;
102
96
103
97
return JsonSerializer . Deserialize < string ? > ( element , ModelBase . SerializerOptions ) ;
104
98
}
@@ -113,7 +107,7 @@ public required string? Status
113
107
get
114
108
{
115
109
if ( ! this . Properties . TryGetValue ( "status" , out JsonElement element ) )
116
- throw new ArgumentOutOfRangeException ( "status" , "Missing required argument" ) ;
110
+ return null ;
117
111
118
112
return JsonSerializer . Deserialize < string ? > ( element , ModelBase . SerializerOptions ) ;
119
113
}
@@ -128,7 +122,7 @@ public required string? SwarmName
128
122
get
129
123
{
130
124
if ( ! this . Properties . TryGetValue ( "swarm_name" , out JsonElement element ) )
131
- throw new ArgumentOutOfRangeException ( "swarm_name" , "Missing required argument" ) ;
125
+ return null ;
132
126
133
127
return JsonSerializer . Deserialize < string ? > ( element , ModelBase . SerializerOptions ) ;
134
128
}
@@ -143,7 +137,7 @@ public required string? SwarmType
143
137
get
144
138
{
145
139
if ( ! this . Properties . TryGetValue ( "swarm_type" , out JsonElement element ) )
146
- throw new ArgumentOutOfRangeException ( "swarm_type" , "Missing required argument" ) ;
140
+ return null ;
147
141
148
142
return JsonSerializer . Deserialize < string ? > ( element , ModelBase . SerializerOptions ) ;
149
143
}
@@ -158,7 +152,7 @@ public required Dictionary<string, JsonElement>? Usage
158
152
get
159
153
{
160
154
if ( ! this . Properties . TryGetValue ( "usage" , out JsonElement element ) )
161
- throw new ArgumentOutOfRangeException ( "usage" , "Missing required argument" ) ;
155
+ return null ;
162
156
163
157
return JsonSerializer . Deserialize < Dictionary < string , JsonElement > ? > (
164
158
element ,
0 commit comments