@aws-sdk/client-iot-wireless 3.125.0 → 3.130.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.
@@ -19,10 +19,8 @@ const serializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommand = async
19
19
  let body;
20
20
  body = JSON.stringify({
21
21
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
22
- ...(input.Sidewalk !== undefined &&
23
- input.Sidewalk !== null && { Sidewalk: serializeAws_restJson1SidewalkAccountInfo(input.Sidewalk, context) }),
24
- ...(input.Tags !== undefined &&
25
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
22
+ ...(input.Sidewalk != null && { Sidewalk: serializeAws_restJson1SidewalkAccountInfo(input.Sidewalk, context) }),
23
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
26
24
  });
27
25
  return new protocol_http_1.HttpRequest({
28
26
  protocol,
@@ -53,8 +51,7 @@ const serializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommand = async
53
51
  }
54
52
  let body;
55
53
  body = JSON.stringify({
56
- ...(input.MulticastGroupId !== undefined &&
57
- input.MulticastGroupId !== null && { MulticastGroupId: input.MulticastGroupId }),
54
+ ...(input.MulticastGroupId != null && { MulticastGroupId: input.MulticastGroupId }),
58
55
  });
59
56
  return new protocol_http_1.HttpRequest({
60
57
  protocol,
@@ -85,8 +82,7 @@ const serializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommand = async
85
82
  }
86
83
  let body;
87
84
  body = JSON.stringify({
88
- ...(input.WirelessDeviceId !== undefined &&
89
- input.WirelessDeviceId !== null && { WirelessDeviceId: input.WirelessDeviceId }),
85
+ ...(input.WirelessDeviceId != null && { WirelessDeviceId: input.WirelessDeviceId }),
90
86
  });
91
87
  return new protocol_http_1.HttpRequest({
92
88
  protocol,
@@ -117,8 +113,7 @@ const serializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommand = a
117
113
  }
118
114
  let body;
119
115
  body = JSON.stringify({
120
- ...(input.WirelessDeviceId !== undefined &&
121
- input.WirelessDeviceId !== null && { WirelessDeviceId: input.WirelessDeviceId }),
116
+ ...(input.WirelessDeviceId != null && { WirelessDeviceId: input.WirelessDeviceId }),
122
117
  });
123
118
  return new protocol_http_1.HttpRequest({
124
119
  protocol,
@@ -149,7 +144,7 @@ const serializeAws_restJson1AssociateWirelessDeviceWithThingCommand = async (inp
149
144
  }
150
145
  let body;
151
146
  body = JSON.stringify({
152
- ...(input.ThingArn !== undefined && input.ThingArn !== null && { ThingArn: input.ThingArn }),
147
+ ...(input.ThingArn != null && { ThingArn: input.ThingArn }),
153
148
  });
154
149
  return new protocol_http_1.HttpRequest({
155
150
  protocol,
@@ -180,8 +175,7 @@ const serializeAws_restJson1AssociateWirelessGatewayWithCertificateCommand = asy
180
175
  }
181
176
  let body;
182
177
  body = JSON.stringify({
183
- ...(input.IotCertificateId !== undefined &&
184
- input.IotCertificateId !== null && { IotCertificateId: input.IotCertificateId }),
178
+ ...(input.IotCertificateId != null && { IotCertificateId: input.IotCertificateId }),
185
179
  });
186
180
  return new protocol_http_1.HttpRequest({
187
181
  protocol,
@@ -212,7 +206,7 @@ const serializeAws_restJson1AssociateWirelessGatewayWithThingCommand = async (in
212
206
  }
213
207
  let body;
214
208
  body = JSON.stringify({
215
- ...(input.ThingArn !== undefined && input.ThingArn !== null && { ThingArn: input.ThingArn }),
209
+ ...(input.ThingArn != null && { ThingArn: input.ThingArn }),
216
210
  });
217
211
  return new protocol_http_1.HttpRequest({
218
212
  protocol,
@@ -261,14 +255,12 @@ const serializeAws_restJson1CreateDestinationCommand = async (input, context) =>
261
255
  let body;
262
256
  body = JSON.stringify({
263
257
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
264
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
265
- ...(input.Expression !== undefined && input.Expression !== null && { Expression: input.Expression }),
266
- ...(input.ExpressionType !== undefined &&
267
- input.ExpressionType !== null && { ExpressionType: input.ExpressionType }),
268
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
269
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
270
- ...(input.Tags !== undefined &&
271
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
258
+ ...(input.Description != null && { Description: input.Description }),
259
+ ...(input.Expression != null && { Expression: input.Expression }),
260
+ ...(input.ExpressionType != null && { ExpressionType: input.ExpressionType }),
261
+ ...(input.Name != null && { Name: input.Name }),
262
+ ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
263
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
272
264
  });
273
265
  return new protocol_http_1.HttpRequest({
274
266
  protocol,
@@ -291,11 +283,9 @@ const serializeAws_restJson1CreateDeviceProfileCommand = async (input, context)
291
283
  let body;
292
284
  body = JSON.stringify({
293
285
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
294
- ...(input.LoRaWAN !== undefined &&
295
- input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANDeviceProfile(input.LoRaWAN, context) }),
296
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
297
- ...(input.Tags !== undefined &&
298
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
286
+ ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANDeviceProfile(input.LoRaWAN, context) }),
287
+ ...(input.Name != null && { Name: input.Name }),
288
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
299
289
  });
300
290
  return new protocol_http_1.HttpRequest({
301
291
  protocol,
@@ -318,16 +308,12 @@ const serializeAws_restJson1CreateFuotaTaskCommand = async (input, context) => {
318
308
  let body;
319
309
  body = JSON.stringify({
320
310
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
321
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
322
- ...(input.FirmwareUpdateImage !== undefined &&
323
- input.FirmwareUpdateImage !== null && { FirmwareUpdateImage: input.FirmwareUpdateImage }),
324
- ...(input.FirmwareUpdateRole !== undefined &&
325
- input.FirmwareUpdateRole !== null && { FirmwareUpdateRole: input.FirmwareUpdateRole }),
326
- ...(input.LoRaWAN !== undefined &&
327
- input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANFuotaTask(input.LoRaWAN, context) }),
328
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
329
- ...(input.Tags !== undefined &&
330
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
311
+ ...(input.Description != null && { Description: input.Description }),
312
+ ...(input.FirmwareUpdateImage != null && { FirmwareUpdateImage: input.FirmwareUpdateImage }),
313
+ ...(input.FirmwareUpdateRole != null && { FirmwareUpdateRole: input.FirmwareUpdateRole }),
314
+ ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANFuotaTask(input.LoRaWAN, context) }),
315
+ ...(input.Name != null && { Name: input.Name }),
316
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
331
317
  });
332
318
  return new protocol_http_1.HttpRequest({
333
319
  protocol,
@@ -350,12 +336,10 @@ const serializeAws_restJson1CreateMulticastGroupCommand = async (input, context)
350
336
  let body;
351
337
  body = JSON.stringify({
352
338
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
353
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
354
- ...(input.LoRaWAN !== undefined &&
355
- input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticast(input.LoRaWAN, context) }),
356
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
357
- ...(input.Tags !== undefined &&
358
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
339
+ ...(input.Description != null && { Description: input.Description }),
340
+ ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticast(input.LoRaWAN, context) }),
341
+ ...(input.Name != null && { Name: input.Name }),
342
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
359
343
  });
360
344
  return new protocol_http_1.HttpRequest({
361
345
  protocol,
@@ -378,18 +362,16 @@ const serializeAws_restJson1CreateNetworkAnalyzerConfigurationCommand = async (i
378
362
  let body;
379
363
  body = JSON.stringify({
380
364
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
381
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
382
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
383
- ...(input.Tags !== undefined &&
384
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
385
- ...(input.TraceContent !== undefined &&
386
- input.TraceContent !== null && { TraceContent: serializeAws_restJson1TraceContent(input.TraceContent, context) }),
387
- ...(input.WirelessDevices !== undefined &&
388
- input.WirelessDevices !== null && {
365
+ ...(input.Description != null && { Description: input.Description }),
366
+ ...(input.Name != null && { Name: input.Name }),
367
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
368
+ ...(input.TraceContent != null && {
369
+ TraceContent: serializeAws_restJson1TraceContent(input.TraceContent, context),
370
+ }),
371
+ ...(input.WirelessDevices != null && {
389
372
  WirelessDevices: serializeAws_restJson1WirelessDeviceList(input.WirelessDevices, context),
390
373
  }),
391
- ...(input.WirelessGateways !== undefined &&
392
- input.WirelessGateways !== null && {
374
+ ...(input.WirelessGateways != null && {
393
375
  WirelessGateways: serializeAws_restJson1WirelessGatewayList(input.WirelessGateways, context),
394
376
  }),
395
377
  });
@@ -414,11 +396,9 @@ const serializeAws_restJson1CreateServiceProfileCommand = async (input, context)
414
396
  let body;
415
397
  body = JSON.stringify({
416
398
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
417
- ...(input.LoRaWAN !== undefined &&
418
- input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANServiceProfile(input.LoRaWAN, context) }),
419
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
420
- ...(input.Tags !== undefined &&
421
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
399
+ ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANServiceProfile(input.LoRaWAN, context) }),
400
+ ...(input.Name != null && { Name: input.Name }),
401
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
422
402
  });
423
403
  return new protocol_http_1.HttpRequest({
424
404
  protocol,
@@ -441,15 +421,12 @@ const serializeAws_restJson1CreateWirelessDeviceCommand = async (input, context)
441
421
  let body;
442
422
  body = JSON.stringify({
443
423
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
444
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
445
- ...(input.DestinationName !== undefined &&
446
- input.DestinationName !== null && { DestinationName: input.DestinationName }),
447
- ...(input.LoRaWAN !== undefined &&
448
- input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANDevice(input.LoRaWAN, context) }),
449
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
450
- ...(input.Tags !== undefined &&
451
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
452
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
424
+ ...(input.Description != null && { Description: input.Description }),
425
+ ...(input.DestinationName != null && { DestinationName: input.DestinationName }),
426
+ ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANDevice(input.LoRaWAN, context) }),
427
+ ...(input.Name != null && { Name: input.Name }),
428
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
429
+ ...(input.Type != null && { Type: input.Type }),
453
430
  });
454
431
  return new protocol_http_1.HttpRequest({
455
432
  protocol,
@@ -472,12 +449,10 @@ const serializeAws_restJson1CreateWirelessGatewayCommand = async (input, context
472
449
  let body;
473
450
  body = JSON.stringify({
474
451
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
475
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
476
- ...(input.LoRaWAN !== undefined &&
477
- input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANGateway(input.LoRaWAN, context) }),
478
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
479
- ...(input.Tags !== undefined &&
480
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
452
+ ...(input.Description != null && { Description: input.Description }),
453
+ ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANGateway(input.LoRaWAN, context) }),
454
+ ...(input.Name != null && { Name: input.Name }),
455
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
481
456
  });
482
457
  return new protocol_http_1.HttpRequest({
483
458
  protocol,
@@ -508,8 +483,7 @@ const serializeAws_restJson1CreateWirelessGatewayTaskCommand = async (input, con
508
483
  }
509
484
  let body;
510
485
  body = JSON.stringify({
511
- ...(input.WirelessGatewayTaskDefinitionId !== undefined &&
512
- input.WirelessGatewayTaskDefinitionId !== null && {
486
+ ...(input.WirelessGatewayTaskDefinitionId != null && {
513
487
  WirelessGatewayTaskDefinitionId: input.WirelessGatewayTaskDefinitionId,
514
488
  }),
515
489
  });
@@ -533,14 +507,11 @@ const serializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommand = async (
533
507
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateway-task-definitions";
534
508
  let body;
535
509
  body = JSON.stringify({
536
- ...(input.AutoCreateTasks !== undefined &&
537
- input.AutoCreateTasks !== null && { AutoCreateTasks: input.AutoCreateTasks }),
510
+ ...(input.AutoCreateTasks != null && { AutoCreateTasks: input.AutoCreateTasks }),
538
511
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
539
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
540
- ...(input.Tags !== undefined &&
541
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
542
- ...(input.Update !== undefined &&
543
- input.Update !== null && {
512
+ ...(input.Name != null && { Name: input.Name }),
513
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
514
+ ...(input.Update != null && {
544
515
  Update: serializeAws_restJson1UpdateWirelessGatewayTaskCreate(input.Update, context),
545
516
  }),
546
517
  });
@@ -2044,9 +2015,8 @@ const serializeAws_restJson1PutPositionConfigurationCommand = async (input, cont
2044
2015
  };
2045
2016
  let body;
2046
2017
  body = JSON.stringify({
2047
- ...(input.Destination !== undefined && input.Destination !== null && { Destination: input.Destination }),
2048
- ...(input.Solvers !== undefined &&
2049
- input.Solvers !== null && {
2018
+ ...(input.Destination != null && { Destination: input.Destination }),
2019
+ ...(input.Solvers != null && {
2050
2020
  Solvers: serializeAws_restJson1PositionSolverConfigurations(input.Solvers, context),
2051
2021
  }),
2052
2022
  });
@@ -2083,7 +2053,7 @@ const serializeAws_restJson1PutResourceLogLevelCommand = async (input, context)
2083
2053
  };
2084
2054
  let body;
2085
2055
  body = JSON.stringify({
2086
- ...(input.LogLevel !== undefined && input.LogLevel !== null && { LogLevel: input.LogLevel }),
2056
+ ...(input.LogLevel != null && { LogLevel: input.LogLevel }),
2087
2057
  });
2088
2058
  return new protocol_http_1.HttpRequest({
2089
2059
  protocol,
@@ -2164,9 +2134,8 @@ const serializeAws_restJson1SendDataToMulticastGroupCommand = async (input, cont
2164
2134
  }
2165
2135
  let body;
2166
2136
  body = JSON.stringify({
2167
- ...(input.PayloadData !== undefined && input.PayloadData !== null && { PayloadData: input.PayloadData }),
2168
- ...(input.WirelessMetadata !== undefined &&
2169
- input.WirelessMetadata !== null && {
2137
+ ...(input.PayloadData != null && { PayloadData: input.PayloadData }),
2138
+ ...(input.WirelessMetadata != null && {
2170
2139
  WirelessMetadata: serializeAws_restJson1MulticastWirelessMetadata(input.WirelessMetadata, context),
2171
2140
  }),
2172
2141
  });
@@ -2199,10 +2168,9 @@ const serializeAws_restJson1SendDataToWirelessDeviceCommand = async (input, cont
2199
2168
  }
2200
2169
  let body;
2201
2170
  body = JSON.stringify({
2202
- ...(input.PayloadData !== undefined && input.PayloadData !== null && { PayloadData: input.PayloadData }),
2203
- ...(input.TransmitMode !== undefined && input.TransmitMode !== null && { TransmitMode: input.TransmitMode }),
2204
- ...(input.WirelessMetadata !== undefined &&
2205
- input.WirelessMetadata !== null && {
2171
+ ...(input.PayloadData != null && { PayloadData: input.PayloadData }),
2172
+ ...(input.TransmitMode != null && { TransmitMode: input.TransmitMode }),
2173
+ ...(input.WirelessMetadata != null && {
2206
2174
  WirelessMetadata: serializeAws_restJson1WirelessMetadata(input.WirelessMetadata, context),
2207
2175
  }),
2208
2176
  });
@@ -2235,9 +2203,8 @@ const serializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroupCo
2235
2203
  }
2236
2204
  let body;
2237
2205
  body = JSON.stringify({
2238
- ...(input.QueryString !== undefined && input.QueryString !== null && { QueryString: input.QueryString }),
2239
- ...(input.Tags !== undefined &&
2240
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
2206
+ ...(input.QueryString != null && { QueryString: input.QueryString }),
2207
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
2241
2208
  });
2242
2209
  return new protocol_http_1.HttpRequest({
2243
2210
  protocol,
@@ -2268,9 +2235,8 @@ const serializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGrou
2268
2235
  }
2269
2236
  let body;
2270
2237
  body = JSON.stringify({
2271
- ...(input.QueryString !== undefined && input.QueryString !== null && { QueryString: input.QueryString }),
2272
- ...(input.Tags !== undefined &&
2273
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
2238
+ ...(input.QueryString != null && { QueryString: input.QueryString }),
2239
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
2274
2240
  });
2275
2241
  return new protocol_http_1.HttpRequest({
2276
2242
  protocol,
@@ -2301,8 +2267,7 @@ const serializeAws_restJson1StartFuotaTaskCommand = async (input, context) => {
2301
2267
  }
2302
2268
  let body;
2303
2269
  body = JSON.stringify({
2304
- ...(input.LoRaWAN !== undefined &&
2305
- input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANStartFuotaTask(input.LoRaWAN, context) }),
2270
+ ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANStartFuotaTask(input.LoRaWAN, context) }),
2306
2271
  });
2307
2272
  return new protocol_http_1.HttpRequest({
2308
2273
  protocol,
@@ -2333,8 +2298,7 @@ const serializeAws_restJson1StartMulticastGroupSessionCommand = async (input, co
2333
2298
  }
2334
2299
  let body;
2335
2300
  body = JSON.stringify({
2336
- ...(input.LoRaWAN !== undefined &&
2337
- input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticastSession(input.LoRaWAN, context) }),
2301
+ ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticastSession(input.LoRaWAN, context) }),
2338
2302
  });
2339
2303
  return new protocol_http_1.HttpRequest({
2340
2304
  protocol,
@@ -2358,8 +2322,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
2358
2322
  };
2359
2323
  let body;
2360
2324
  body = JSON.stringify({
2361
- ...(input.Tags !== undefined &&
2362
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
2325
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
2363
2326
  });
2364
2327
  return new protocol_http_1.HttpRequest({
2365
2328
  protocol,
@@ -2438,11 +2401,10 @@ const serializeAws_restJson1UpdateDestinationCommand = async (input, context) =>
2438
2401
  }
2439
2402
  let body;
2440
2403
  body = JSON.stringify({
2441
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2442
- ...(input.Expression !== undefined && input.Expression !== null && { Expression: input.Expression }),
2443
- ...(input.ExpressionType !== undefined &&
2444
- input.ExpressionType !== null && { ExpressionType: input.ExpressionType }),
2445
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
2404
+ ...(input.Description != null && { Description: input.Description }),
2405
+ ...(input.Expression != null && { Expression: input.Expression }),
2406
+ ...(input.ExpressionType != null && { ExpressionType: input.ExpressionType }),
2407
+ ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
2446
2408
  });
2447
2409
  return new protocol_http_1.HttpRequest({
2448
2410
  protocol,
@@ -2463,18 +2425,14 @@ const serializeAws_restJson1UpdateEventConfigurationByResourceTypesCommand = asy
2463
2425
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations-resource-types";
2464
2426
  let body;
2465
2427
  body = JSON.stringify({
2466
- ...(input.ConnectionStatus !== undefined &&
2467
- input.ConnectionStatus !== null && {
2428
+ ...(input.ConnectionStatus != null && {
2468
2429
  ConnectionStatus: serializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration(input.ConnectionStatus, context),
2469
2430
  }),
2470
- ...(input.DeviceRegistrationState !== undefined &&
2471
- input.DeviceRegistrationState !== null && {
2431
+ ...(input.DeviceRegistrationState != null && {
2472
2432
  DeviceRegistrationState: serializeAws_restJson1DeviceRegistrationStateResourceTypeEventConfiguration(input.DeviceRegistrationState, context),
2473
2433
  }),
2474
- ...(input.Join !== undefined &&
2475
- input.Join !== null && { Join: serializeAws_restJson1JoinResourceTypeEventConfiguration(input.Join, context) }),
2476
- ...(input.Proximity !== undefined &&
2477
- input.Proximity !== null && {
2434
+ ...(input.Join != null && { Join: serializeAws_restJson1JoinResourceTypeEventConfiguration(input.Join, context) }),
2435
+ ...(input.Proximity != null && {
2478
2436
  Proximity: serializeAws_restJson1ProximityResourceTypeEventConfiguration(input.Proximity, context),
2479
2437
  }),
2480
2438
  });
@@ -2507,14 +2465,11 @@ const serializeAws_restJson1UpdateFuotaTaskCommand = async (input, context) => {
2507
2465
  }
2508
2466
  let body;
2509
2467
  body = JSON.stringify({
2510
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2511
- ...(input.FirmwareUpdateImage !== undefined &&
2512
- input.FirmwareUpdateImage !== null && { FirmwareUpdateImage: input.FirmwareUpdateImage }),
2513
- ...(input.FirmwareUpdateRole !== undefined &&
2514
- input.FirmwareUpdateRole !== null && { FirmwareUpdateRole: input.FirmwareUpdateRole }),
2515
- ...(input.LoRaWAN !== undefined &&
2516
- input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANFuotaTask(input.LoRaWAN, context) }),
2517
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2468
+ ...(input.Description != null && { Description: input.Description }),
2469
+ ...(input.FirmwareUpdateImage != null && { FirmwareUpdateImage: input.FirmwareUpdateImage }),
2470
+ ...(input.FirmwareUpdateRole != null && { FirmwareUpdateRole: input.FirmwareUpdateRole }),
2471
+ ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANFuotaTask(input.LoRaWAN, context) }),
2472
+ ...(input.Name != null && { Name: input.Name }),
2518
2473
  });
2519
2474
  return new protocol_http_1.HttpRequest({
2520
2475
  protocol,
@@ -2535,14 +2490,11 @@ const serializeAws_restJson1UpdateLogLevelsByResourceTypesCommand = async (input
2535
2490
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels";
2536
2491
  let body;
2537
2492
  body = JSON.stringify({
2538
- ...(input.DefaultLogLevel !== undefined &&
2539
- input.DefaultLogLevel !== null && { DefaultLogLevel: input.DefaultLogLevel }),
2540
- ...(input.WirelessDeviceLogOptions !== undefined &&
2541
- input.WirelessDeviceLogOptions !== null && {
2493
+ ...(input.DefaultLogLevel != null && { DefaultLogLevel: input.DefaultLogLevel }),
2494
+ ...(input.WirelessDeviceLogOptions != null && {
2542
2495
  WirelessDeviceLogOptions: serializeAws_restJson1WirelessDeviceLogOptionList(input.WirelessDeviceLogOptions, context),
2543
2496
  }),
2544
- ...(input.WirelessGatewayLogOptions !== undefined &&
2545
- input.WirelessGatewayLogOptions !== null && {
2497
+ ...(input.WirelessGatewayLogOptions != null && {
2546
2498
  WirelessGatewayLogOptions: serializeAws_restJson1WirelessGatewayLogOptionList(input.WirelessGatewayLogOptions, context),
2547
2499
  }),
2548
2500
  });
@@ -2575,10 +2527,9 @@ const serializeAws_restJson1UpdateMulticastGroupCommand = async (input, context)
2575
2527
  }
2576
2528
  let body;
2577
2529
  body = JSON.stringify({
2578
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2579
- ...(input.LoRaWAN !== undefined &&
2580
- input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticast(input.LoRaWAN, context) }),
2581
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2530
+ ...(input.Description != null && { Description: input.Description }),
2531
+ ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticast(input.LoRaWAN, context) }),
2532
+ ...(input.Name != null && { Name: input.Name }),
2582
2533
  });
2583
2534
  return new protocol_http_1.HttpRequest({
2584
2535
  protocol,
@@ -2610,23 +2561,20 @@ const serializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = async (i
2610
2561
  }
2611
2562
  let body;
2612
2563
  body = JSON.stringify({
2613
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2614
- ...(input.TraceContent !== undefined &&
2615
- input.TraceContent !== null && { TraceContent: serializeAws_restJson1TraceContent(input.TraceContent, context) }),
2616
- ...(input.WirelessDevicesToAdd !== undefined &&
2617
- input.WirelessDevicesToAdd !== null && {
2564
+ ...(input.Description != null && { Description: input.Description }),
2565
+ ...(input.TraceContent != null && {
2566
+ TraceContent: serializeAws_restJson1TraceContent(input.TraceContent, context),
2567
+ }),
2568
+ ...(input.WirelessDevicesToAdd != null && {
2618
2569
  WirelessDevicesToAdd: serializeAws_restJson1WirelessDeviceList(input.WirelessDevicesToAdd, context),
2619
2570
  }),
2620
- ...(input.WirelessDevicesToRemove !== undefined &&
2621
- input.WirelessDevicesToRemove !== null && {
2571
+ ...(input.WirelessDevicesToRemove != null && {
2622
2572
  WirelessDevicesToRemove: serializeAws_restJson1WirelessDeviceList(input.WirelessDevicesToRemove, context),
2623
2573
  }),
2624
- ...(input.WirelessGatewaysToAdd !== undefined &&
2625
- input.WirelessGatewaysToAdd !== null && {
2574
+ ...(input.WirelessGatewaysToAdd != null && {
2626
2575
  WirelessGatewaysToAdd: serializeAws_restJson1WirelessGatewayList(input.WirelessGatewaysToAdd, context),
2627
2576
  }),
2628
- ...(input.WirelessGatewaysToRemove !== undefined &&
2629
- input.WirelessGatewaysToRemove !== null && {
2577
+ ...(input.WirelessGatewaysToRemove != null && {
2630
2578
  WirelessGatewaysToRemove: serializeAws_restJson1WirelessGatewayList(input.WirelessGatewaysToRemove, context),
2631
2579
  }),
2632
2580
  });
@@ -2662,8 +2610,7 @@ const serializeAws_restJson1UpdatePartnerAccountCommand = async (input, context)
2662
2610
  };
2663
2611
  let body;
2664
2612
  body = JSON.stringify({
2665
- ...(input.Sidewalk !== undefined &&
2666
- input.Sidewalk !== null && { Sidewalk: serializeAws_restJson1SidewalkUpdateAccount(input.Sidewalk, context) }),
2613
+ ...(input.Sidewalk != null && { Sidewalk: serializeAws_restJson1SidewalkUpdateAccount(input.Sidewalk, context) }),
2667
2614
  });
2668
2615
  return new protocol_http_1.HttpRequest({
2669
2616
  protocol,
@@ -2698,8 +2645,7 @@ const serializeAws_restJson1UpdatePositionCommand = async (input, context) => {
2698
2645
  };
2699
2646
  let body;
2700
2647
  body = JSON.stringify({
2701
- ...(input.Position !== undefined &&
2702
- input.Position !== null && { Position: serializeAws_restJson1PositionCoordinate(input.Position, context) }),
2648
+ ...(input.Position != null && { Position: serializeAws_restJson1PositionCoordinate(input.Position, context) }),
2703
2649
  });
2704
2650
  return new protocol_http_1.HttpRequest({
2705
2651
  protocol,
@@ -2735,18 +2681,14 @@ const serializeAws_restJson1UpdateResourceEventConfigurationCommand = async (inp
2735
2681
  };
2736
2682
  let body;
2737
2683
  body = JSON.stringify({
2738
- ...(input.ConnectionStatus !== undefined &&
2739
- input.ConnectionStatus !== null && {
2684
+ ...(input.ConnectionStatus != null && {
2740
2685
  ConnectionStatus: serializeAws_restJson1ConnectionStatusEventConfiguration(input.ConnectionStatus, context),
2741
2686
  }),
2742
- ...(input.DeviceRegistrationState !== undefined &&
2743
- input.DeviceRegistrationState !== null && {
2687
+ ...(input.DeviceRegistrationState != null && {
2744
2688
  DeviceRegistrationState: serializeAws_restJson1DeviceRegistrationStateEventConfiguration(input.DeviceRegistrationState, context),
2745
2689
  }),
2746
- ...(input.Join !== undefined &&
2747
- input.Join !== null && { Join: serializeAws_restJson1JoinEventConfiguration(input.Join, context) }),
2748
- ...(input.Proximity !== undefined &&
2749
- input.Proximity !== null && {
2690
+ ...(input.Join != null && { Join: serializeAws_restJson1JoinEventConfiguration(input.Join, context) }),
2691
+ ...(input.Proximity != null && {
2750
2692
  Proximity: serializeAws_restJson1ProximityEventConfiguration(input.Proximity, context),
2751
2693
  }),
2752
2694
  });
@@ -2780,12 +2722,10 @@ const serializeAws_restJson1UpdateWirelessDeviceCommand = async (input, context)
2780
2722
  }
2781
2723
  let body;
2782
2724
  body = JSON.stringify({
2783
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2784
- ...(input.DestinationName !== undefined &&
2785
- input.DestinationName !== null && { DestinationName: input.DestinationName }),
2786
- ...(input.LoRaWAN !== undefined &&
2787
- input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANUpdateDevice(input.LoRaWAN, context) }),
2788
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2725
+ ...(input.Description != null && { Description: input.Description }),
2726
+ ...(input.DestinationName != null && { DestinationName: input.DestinationName }),
2727
+ ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANUpdateDevice(input.LoRaWAN, context) }),
2728
+ ...(input.Name != null && { Name: input.Name }),
2789
2729
  });
2790
2730
  return new protocol_http_1.HttpRequest({
2791
2731
  protocol,
@@ -2816,14 +2756,14 @@ const serializeAws_restJson1UpdateWirelessGatewayCommand = async (input, context
2816
2756
  }
2817
2757
  let body;
2818
2758
  body = JSON.stringify({
2819
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2820
- ...(input.JoinEuiFilters !== undefined &&
2821
- input.JoinEuiFilters !== null && {
2759
+ ...(input.Description != null && { Description: input.Description }),
2760
+ ...(input.JoinEuiFilters != null && {
2822
2761
  JoinEuiFilters: serializeAws_restJson1JoinEuiFilters(input.JoinEuiFilters, context),
2823
2762
  }),
2824
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2825
- ...(input.NetIdFilters !== undefined &&
2826
- input.NetIdFilters !== null && { NetIdFilters: serializeAws_restJson1NetIdFilters(input.NetIdFilters, context) }),
2763
+ ...(input.Name != null && { Name: input.Name }),
2764
+ ...(input.NetIdFilters != null && {
2765
+ NetIdFilters: serializeAws_restJson1NetIdFilters(input.NetIdFilters, context),
2766
+ }),
2827
2767
  });
2828
2768
  return new protocol_http_1.HttpRequest({
2829
2769
  protocol,
@@ -8087,56 +8027,50 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
8087
8027
  };
8088
8028
  const serializeAws_restJson1AbpV1_0_x = (input, context) => {
8089
8029
  return {
8090
- ...(input.DevAddr !== undefined && input.DevAddr !== null && { DevAddr: input.DevAddr }),
8091
- ...(input.FCntStart !== undefined && input.FCntStart !== null && { FCntStart: input.FCntStart }),
8092
- ...(input.SessionKeys !== undefined &&
8093
- input.SessionKeys !== null && {
8030
+ ...(input.DevAddr != null && { DevAddr: input.DevAddr }),
8031
+ ...(input.FCntStart != null && { FCntStart: input.FCntStart }),
8032
+ ...(input.SessionKeys != null && {
8094
8033
  SessionKeys: serializeAws_restJson1SessionKeysAbpV1_0_x(input.SessionKeys, context),
8095
8034
  }),
8096
8035
  };
8097
8036
  };
8098
8037
  const serializeAws_restJson1AbpV1_1 = (input, context) => {
8099
8038
  return {
8100
- ...(input.DevAddr !== undefined && input.DevAddr !== null && { DevAddr: input.DevAddr }),
8101
- ...(input.FCntStart !== undefined && input.FCntStart !== null && { FCntStart: input.FCntStart }),
8102
- ...(input.SessionKeys !== undefined &&
8103
- input.SessionKeys !== null && {
8039
+ ...(input.DevAddr != null && { DevAddr: input.DevAddr }),
8040
+ ...(input.FCntStart != null && { FCntStart: input.FCntStart }),
8041
+ ...(input.SessionKeys != null && {
8104
8042
  SessionKeys: serializeAws_restJson1SessionKeysAbpV1_1(input.SessionKeys, context),
8105
8043
  }),
8106
8044
  };
8107
8045
  };
8108
8046
  const serializeAws_restJson1ConnectionStatusEventConfiguration = (input, context) => {
8109
8047
  return {
8110
- ...(input.LoRaWAN !== undefined &&
8111
- input.LoRaWAN !== null && {
8048
+ ...(input.LoRaWAN != null && {
8112
8049
  LoRaWAN: serializeAws_restJson1LoRaWANConnectionStatusEventNotificationConfigurations(input.LoRaWAN, context),
8113
8050
  }),
8114
- ...(input.WirelessGatewayIdEventTopic !== undefined &&
8115
- input.WirelessGatewayIdEventTopic !== null && { WirelessGatewayIdEventTopic: input.WirelessGatewayIdEventTopic }),
8051
+ ...(input.WirelessGatewayIdEventTopic != null && {
8052
+ WirelessGatewayIdEventTopic: input.WirelessGatewayIdEventTopic,
8053
+ }),
8116
8054
  };
8117
8055
  };
8118
8056
  const serializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration = (input, context) => {
8119
8057
  return {
8120
- ...(input.LoRaWAN !== undefined &&
8121
- input.LoRaWAN !== null && {
8058
+ ...(input.LoRaWAN != null && {
8122
8059
  LoRaWAN: serializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguration(input.LoRaWAN, context),
8123
8060
  }),
8124
8061
  };
8125
8062
  };
8126
8063
  const serializeAws_restJson1DeviceRegistrationStateEventConfiguration = (input, context) => {
8127
8064
  return {
8128
- ...(input.Sidewalk !== undefined &&
8129
- input.Sidewalk !== null && {
8065
+ ...(input.Sidewalk != null && {
8130
8066
  Sidewalk: serializeAws_restJson1SidewalkEventNotificationConfigurations(input.Sidewalk, context),
8131
8067
  }),
8132
- ...(input.WirelessDeviceIdEventTopic !== undefined &&
8133
- input.WirelessDeviceIdEventTopic !== null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }),
8068
+ ...(input.WirelessDeviceIdEventTopic != null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }),
8134
8069
  };
8135
8070
  };
8136
8071
  const serializeAws_restJson1DeviceRegistrationStateResourceTypeEventConfiguration = (input, context) => {
8137
8072
  return {
8138
- ...(input.Sidewalk !== undefined &&
8139
- input.Sidewalk !== null && {
8073
+ ...(input.Sidewalk != null && {
8140
8074
  Sidewalk: serializeAws_restJson1SidewalkResourceTypeEventConfiguration(input.Sidewalk, context),
8141
8075
  }),
8142
8076
  };
@@ -8153,11 +8087,10 @@ const serializeAws_restJson1FactoryPresetFreqsList = (input, context) => {
8153
8087
  };
8154
8088
  const serializeAws_restJson1FPorts = (input, context) => {
8155
8089
  return {
8156
- ...(input.ClockSync !== undefined && input.ClockSync !== null && { ClockSync: input.ClockSync }),
8157
- ...(input.Fuota !== undefined && input.Fuota !== null && { Fuota: input.Fuota }),
8158
- ...(input.Multicast !== undefined && input.Multicast !== null && { Multicast: input.Multicast }),
8159
- ...(input.Positioning !== undefined &&
8160
- input.Positioning !== null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }),
8090
+ ...(input.ClockSync != null && { ClockSync: input.ClockSync }),
8091
+ ...(input.Fuota != null && { Fuota: input.Fuota }),
8092
+ ...(input.Multicast != null && { Multicast: input.Multicast }),
8093
+ ...(input.Positioning != null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }),
8161
8094
  };
8162
8095
  };
8163
8096
  const serializeAws_restJson1JoinEuiFilters = (input, context) => {
@@ -8182,195 +8115,161 @@ const serializeAws_restJson1JoinEuiRange = (input, context) => {
8182
8115
  };
8183
8116
  const serializeAws_restJson1JoinEventConfiguration = (input, context) => {
8184
8117
  return {
8185
- ...(input.LoRaWAN !== undefined &&
8186
- input.LoRaWAN !== null && {
8118
+ ...(input.LoRaWAN != null && {
8187
8119
  LoRaWAN: serializeAws_restJson1LoRaWANJoinEventNotificationConfigurations(input.LoRaWAN, context),
8188
8120
  }),
8189
- ...(input.WirelessDeviceIdEventTopic !== undefined &&
8190
- input.WirelessDeviceIdEventTopic !== null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }),
8121
+ ...(input.WirelessDeviceIdEventTopic != null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }),
8191
8122
  };
8192
8123
  };
8193
8124
  const serializeAws_restJson1JoinResourceTypeEventConfiguration = (input, context) => {
8194
8125
  return {
8195
- ...(input.LoRaWAN !== undefined &&
8196
- input.LoRaWAN !== null && {
8126
+ ...(input.LoRaWAN != null && {
8197
8127
  LoRaWAN: serializeAws_restJson1LoRaWANJoinResourceTypeEventConfiguration(input.LoRaWAN, context),
8198
8128
  }),
8199
8129
  };
8200
8130
  };
8201
8131
  const serializeAws_restJson1LoRaWANConnectionStatusEventNotificationConfigurations = (input, context) => {
8202
8132
  return {
8203
- ...(input.GatewayEuiEventTopic !== undefined &&
8204
- input.GatewayEuiEventTopic !== null && { GatewayEuiEventTopic: input.GatewayEuiEventTopic }),
8133
+ ...(input.GatewayEuiEventTopic != null && { GatewayEuiEventTopic: input.GatewayEuiEventTopic }),
8205
8134
  };
8206
8135
  };
8207
8136
  const serializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguration = (input, context) => {
8208
8137
  return {
8209
- ...(input.WirelessGatewayEventTopic !== undefined &&
8210
- input.WirelessGatewayEventTopic !== null && { WirelessGatewayEventTopic: input.WirelessGatewayEventTopic }),
8138
+ ...(input.WirelessGatewayEventTopic != null && { WirelessGatewayEventTopic: input.WirelessGatewayEventTopic }),
8211
8139
  };
8212
8140
  };
8213
8141
  const serializeAws_restJson1LoRaWANDevice = (input, context) => {
8214
8142
  return {
8215
- ...(input.AbpV1_0_x !== undefined &&
8216
- input.AbpV1_0_x !== null && { AbpV1_0_x: serializeAws_restJson1AbpV1_0_x(input.AbpV1_0_x, context) }),
8217
- ...(input.AbpV1_1 !== undefined &&
8218
- input.AbpV1_1 !== null && { AbpV1_1: serializeAws_restJson1AbpV1_1(input.AbpV1_1, context) }),
8219
- ...(input.DevEui !== undefined && input.DevEui !== null && { DevEui: input.DevEui }),
8220
- ...(input.DeviceProfileId !== undefined &&
8221
- input.DeviceProfileId !== null && { DeviceProfileId: input.DeviceProfileId }),
8222
- ...(input.FPorts !== undefined &&
8223
- input.FPorts !== null && { FPorts: serializeAws_restJson1FPorts(input.FPorts, context) }),
8224
- ...(input.OtaaV1_0_x !== undefined &&
8225
- input.OtaaV1_0_x !== null && { OtaaV1_0_x: serializeAws_restJson1OtaaV1_0_x(input.OtaaV1_0_x, context) }),
8226
- ...(input.OtaaV1_1 !== undefined &&
8227
- input.OtaaV1_1 !== null && { OtaaV1_1: serializeAws_restJson1OtaaV1_1(input.OtaaV1_1, context) }),
8228
- ...(input.ServiceProfileId !== undefined &&
8229
- input.ServiceProfileId !== null && { ServiceProfileId: input.ServiceProfileId }),
8143
+ ...(input.AbpV1_0_x != null && { AbpV1_0_x: serializeAws_restJson1AbpV1_0_x(input.AbpV1_0_x, context) }),
8144
+ ...(input.AbpV1_1 != null && { AbpV1_1: serializeAws_restJson1AbpV1_1(input.AbpV1_1, context) }),
8145
+ ...(input.DevEui != null && { DevEui: input.DevEui }),
8146
+ ...(input.DeviceProfileId != null && { DeviceProfileId: input.DeviceProfileId }),
8147
+ ...(input.FPorts != null && { FPorts: serializeAws_restJson1FPorts(input.FPorts, context) }),
8148
+ ...(input.OtaaV1_0_x != null && { OtaaV1_0_x: serializeAws_restJson1OtaaV1_0_x(input.OtaaV1_0_x, context) }),
8149
+ ...(input.OtaaV1_1 != null && { OtaaV1_1: serializeAws_restJson1OtaaV1_1(input.OtaaV1_1, context) }),
8150
+ ...(input.ServiceProfileId != null && { ServiceProfileId: input.ServiceProfileId }),
8230
8151
  };
8231
8152
  };
8232
8153
  const serializeAws_restJson1LoRaWANDeviceProfile = (input, context) => {
8233
8154
  return {
8234
- ...(input.ClassBTimeout !== undefined && input.ClassBTimeout !== null && { ClassBTimeout: input.ClassBTimeout }),
8235
- ...(input.ClassCTimeout !== undefined && input.ClassCTimeout !== null && { ClassCTimeout: input.ClassCTimeout }),
8236
- ...(input.FactoryPresetFreqsList !== undefined &&
8237
- input.FactoryPresetFreqsList !== null && {
8155
+ ...(input.ClassBTimeout != null && { ClassBTimeout: input.ClassBTimeout }),
8156
+ ...(input.ClassCTimeout != null && { ClassCTimeout: input.ClassCTimeout }),
8157
+ ...(input.FactoryPresetFreqsList != null && {
8238
8158
  FactoryPresetFreqsList: serializeAws_restJson1FactoryPresetFreqsList(input.FactoryPresetFreqsList, context),
8239
8159
  }),
8240
- ...(input.MacVersion !== undefined && input.MacVersion !== null && { MacVersion: input.MacVersion }),
8241
- ...(input.MaxDutyCycle !== undefined && input.MaxDutyCycle !== null && { MaxDutyCycle: input.MaxDutyCycle }),
8242
- ...(input.MaxEirp !== undefined && input.MaxEirp !== null && { MaxEirp: input.MaxEirp }),
8243
- ...(input.PingSlotDr !== undefined && input.PingSlotDr !== null && { PingSlotDr: input.PingSlotDr }),
8244
- ...(input.PingSlotFreq !== undefined && input.PingSlotFreq !== null && { PingSlotFreq: input.PingSlotFreq }),
8245
- ...(input.PingSlotPeriod !== undefined &&
8246
- input.PingSlotPeriod !== null && { PingSlotPeriod: input.PingSlotPeriod }),
8247
- ...(input.RegParamsRevision !== undefined &&
8248
- input.RegParamsRevision !== null && { RegParamsRevision: input.RegParamsRevision }),
8249
- ...(input.RfRegion !== undefined && input.RfRegion !== null && { RfRegion: input.RfRegion }),
8250
- ...(input.RxDataRate2 !== undefined && input.RxDataRate2 !== null && { RxDataRate2: input.RxDataRate2 }),
8251
- ...(input.RxDelay1 !== undefined && input.RxDelay1 !== null && { RxDelay1: input.RxDelay1 }),
8252
- ...(input.RxDrOffset1 !== undefined && input.RxDrOffset1 !== null && { RxDrOffset1: input.RxDrOffset1 }),
8253
- ...(input.RxFreq2 !== undefined && input.RxFreq2 !== null && { RxFreq2: input.RxFreq2 }),
8254
- ...(input.Supports32BitFCnt !== undefined &&
8255
- input.Supports32BitFCnt !== null && { Supports32BitFCnt: input.Supports32BitFCnt }),
8256
- ...(input.SupportsClassB !== undefined &&
8257
- input.SupportsClassB !== null && { SupportsClassB: input.SupportsClassB }),
8258
- ...(input.SupportsClassC !== undefined &&
8259
- input.SupportsClassC !== null && { SupportsClassC: input.SupportsClassC }),
8260
- ...(input.SupportsJoin !== undefined && input.SupportsJoin !== null && { SupportsJoin: input.SupportsJoin }),
8160
+ ...(input.MacVersion != null && { MacVersion: input.MacVersion }),
8161
+ ...(input.MaxDutyCycle != null && { MaxDutyCycle: input.MaxDutyCycle }),
8162
+ ...(input.MaxEirp != null && { MaxEirp: input.MaxEirp }),
8163
+ ...(input.PingSlotDr != null && { PingSlotDr: input.PingSlotDr }),
8164
+ ...(input.PingSlotFreq != null && { PingSlotFreq: input.PingSlotFreq }),
8165
+ ...(input.PingSlotPeriod != null && { PingSlotPeriod: input.PingSlotPeriod }),
8166
+ ...(input.RegParamsRevision != null && { RegParamsRevision: input.RegParamsRevision }),
8167
+ ...(input.RfRegion != null && { RfRegion: input.RfRegion }),
8168
+ ...(input.RxDataRate2 != null && { RxDataRate2: input.RxDataRate2 }),
8169
+ ...(input.RxDelay1 != null && { RxDelay1: input.RxDelay1 }),
8170
+ ...(input.RxDrOffset1 != null && { RxDrOffset1: input.RxDrOffset1 }),
8171
+ ...(input.RxFreq2 != null && { RxFreq2: input.RxFreq2 }),
8172
+ ...(input.Supports32BitFCnt != null && { Supports32BitFCnt: input.Supports32BitFCnt }),
8173
+ ...(input.SupportsClassB != null && { SupportsClassB: input.SupportsClassB }),
8174
+ ...(input.SupportsClassC != null && { SupportsClassC: input.SupportsClassC }),
8175
+ ...(input.SupportsJoin != null && { SupportsJoin: input.SupportsJoin }),
8261
8176
  };
8262
8177
  };
8263
8178
  const serializeAws_restJson1LoRaWANFuotaTask = (input, context) => {
8264
8179
  return {
8265
- ...(input.RfRegion !== undefined && input.RfRegion !== null && { RfRegion: input.RfRegion }),
8180
+ ...(input.RfRegion != null && { RfRegion: input.RfRegion }),
8266
8181
  };
8267
8182
  };
8268
8183
  const serializeAws_restJson1LoRaWANGateway = (input, context) => {
8269
8184
  return {
8270
- ...(input.GatewayEui !== undefined && input.GatewayEui !== null && { GatewayEui: input.GatewayEui }),
8271
- ...(input.JoinEuiFilters !== undefined &&
8272
- input.JoinEuiFilters !== null && {
8185
+ ...(input.GatewayEui != null && { GatewayEui: input.GatewayEui }),
8186
+ ...(input.JoinEuiFilters != null && {
8273
8187
  JoinEuiFilters: serializeAws_restJson1JoinEuiFilters(input.JoinEuiFilters, context),
8274
8188
  }),
8275
- ...(input.NetIdFilters !== undefined &&
8276
- input.NetIdFilters !== null && { NetIdFilters: serializeAws_restJson1NetIdFilters(input.NetIdFilters, context) }),
8277
- ...(input.RfRegion !== undefined && input.RfRegion !== null && { RfRegion: input.RfRegion }),
8278
- ...(input.SubBands !== undefined &&
8279
- input.SubBands !== null && { SubBands: serializeAws_restJson1SubBands(input.SubBands, context) }),
8189
+ ...(input.NetIdFilters != null && {
8190
+ NetIdFilters: serializeAws_restJson1NetIdFilters(input.NetIdFilters, context),
8191
+ }),
8192
+ ...(input.RfRegion != null && { RfRegion: input.RfRegion }),
8193
+ ...(input.SubBands != null && { SubBands: serializeAws_restJson1SubBands(input.SubBands, context) }),
8280
8194
  };
8281
8195
  };
8282
8196
  const serializeAws_restJson1LoRaWANGatewayVersion = (input, context) => {
8283
8197
  return {
8284
- ...(input.Model !== undefined && input.Model !== null && { Model: input.Model }),
8285
- ...(input.PackageVersion !== undefined &&
8286
- input.PackageVersion !== null && { PackageVersion: input.PackageVersion }),
8287
- ...(input.Station !== undefined && input.Station !== null && { Station: input.Station }),
8198
+ ...(input.Model != null && { Model: input.Model }),
8199
+ ...(input.PackageVersion != null && { PackageVersion: input.PackageVersion }),
8200
+ ...(input.Station != null && { Station: input.Station }),
8288
8201
  };
8289
8202
  };
8290
8203
  const serializeAws_restJson1LoRaWANJoinEventNotificationConfigurations = (input, context) => {
8291
8204
  return {
8292
- ...(input.DevEuiEventTopic !== undefined &&
8293
- input.DevEuiEventTopic !== null && { DevEuiEventTopic: input.DevEuiEventTopic }),
8205
+ ...(input.DevEuiEventTopic != null && { DevEuiEventTopic: input.DevEuiEventTopic }),
8294
8206
  };
8295
8207
  };
8296
8208
  const serializeAws_restJson1LoRaWANJoinResourceTypeEventConfiguration = (input, context) => {
8297
8209
  return {
8298
- ...(input.WirelessDeviceEventTopic !== undefined &&
8299
- input.WirelessDeviceEventTopic !== null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }),
8210
+ ...(input.WirelessDeviceEventTopic != null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }),
8300
8211
  };
8301
8212
  };
8302
8213
  const serializeAws_restJson1LoRaWANMulticast = (input, context) => {
8303
8214
  return {
8304
- ...(input.DlClass !== undefined && input.DlClass !== null && { DlClass: input.DlClass }),
8305
- ...(input.RfRegion !== undefined && input.RfRegion !== null && { RfRegion: input.RfRegion }),
8215
+ ...(input.DlClass != null && { DlClass: input.DlClass }),
8216
+ ...(input.RfRegion != null && { RfRegion: input.RfRegion }),
8306
8217
  };
8307
8218
  };
8308
8219
  const serializeAws_restJson1LoRaWANMulticastMetadata = (input, context) => {
8309
8220
  return {
8310
- ...(input.FPort !== undefined && input.FPort !== null && { FPort: input.FPort }),
8221
+ ...(input.FPort != null && { FPort: input.FPort }),
8311
8222
  };
8312
8223
  };
8313
8224
  const serializeAws_restJson1LoRaWANMulticastSession = (input, context) => {
8314
8225
  return {
8315
- ...(input.DlDr !== undefined && input.DlDr !== null && { DlDr: input.DlDr }),
8316
- ...(input.DlFreq !== undefined && input.DlFreq !== null && { DlFreq: input.DlFreq }),
8317
- ...(input.SessionStartTime !== undefined &&
8318
- input.SessionStartTime !== null && {
8226
+ ...(input.DlDr != null && { DlDr: input.DlDr }),
8227
+ ...(input.DlFreq != null && { DlFreq: input.DlFreq }),
8228
+ ...(input.SessionStartTime != null && {
8319
8229
  SessionStartTime: input.SessionStartTime.toISOString().split(".")[0] + "Z",
8320
8230
  }),
8321
- ...(input.SessionTimeout !== undefined &&
8322
- input.SessionTimeout !== null && { SessionTimeout: input.SessionTimeout }),
8231
+ ...(input.SessionTimeout != null && { SessionTimeout: input.SessionTimeout }),
8323
8232
  };
8324
8233
  };
8325
8234
  const serializeAws_restJson1LoRaWANSendDataToDevice = (input, context) => {
8326
8235
  return {
8327
- ...(input.FPort !== undefined && input.FPort !== null && { FPort: input.FPort }),
8236
+ ...(input.FPort != null && { FPort: input.FPort }),
8328
8237
  };
8329
8238
  };
8330
8239
  const serializeAws_restJson1LoRaWANServiceProfile = (input, context) => {
8331
8240
  return {
8332
- ...(input.AddGwMetadata !== undefined && input.AddGwMetadata !== null && { AddGwMetadata: input.AddGwMetadata }),
8241
+ ...(input.AddGwMetadata != null && { AddGwMetadata: input.AddGwMetadata }),
8333
8242
  };
8334
8243
  };
8335
8244
  const serializeAws_restJson1LoRaWANStartFuotaTask = (input, context) => {
8336
8245
  return {
8337
- ...(input.StartTime !== undefined &&
8338
- input.StartTime !== null && { StartTime: input.StartTime.toISOString().split(".")[0] + "Z" }),
8246
+ ...(input.StartTime != null && { StartTime: input.StartTime.toISOString().split(".")[0] + "Z" }),
8339
8247
  };
8340
8248
  };
8341
8249
  const serializeAws_restJson1LoRaWANUpdateDevice = (input, context) => {
8342
8250
  return {
8343
- ...(input.AbpV1_0_x !== undefined &&
8344
- input.AbpV1_0_x !== null && { AbpV1_0_x: serializeAws_restJson1UpdateAbpV1_0_x(input.AbpV1_0_x, context) }),
8345
- ...(input.AbpV1_1 !== undefined &&
8346
- input.AbpV1_1 !== null && { AbpV1_1: serializeAws_restJson1UpdateAbpV1_1(input.AbpV1_1, context) }),
8347
- ...(input.DeviceProfileId !== undefined &&
8348
- input.DeviceProfileId !== null && { DeviceProfileId: input.DeviceProfileId }),
8349
- ...(input.FPorts !== undefined &&
8350
- input.FPorts !== null && { FPorts: serializeAws_restJson1UpdateFPorts(input.FPorts, context) }),
8351
- ...(input.ServiceProfileId !== undefined &&
8352
- input.ServiceProfileId !== null && { ServiceProfileId: input.ServiceProfileId }),
8251
+ ...(input.AbpV1_0_x != null && { AbpV1_0_x: serializeAws_restJson1UpdateAbpV1_0_x(input.AbpV1_0_x, context) }),
8252
+ ...(input.AbpV1_1 != null && { AbpV1_1: serializeAws_restJson1UpdateAbpV1_1(input.AbpV1_1, context) }),
8253
+ ...(input.DeviceProfileId != null && { DeviceProfileId: input.DeviceProfileId }),
8254
+ ...(input.FPorts != null && { FPorts: serializeAws_restJson1UpdateFPorts(input.FPorts, context) }),
8255
+ ...(input.ServiceProfileId != null && { ServiceProfileId: input.ServiceProfileId }),
8353
8256
  };
8354
8257
  };
8355
8258
  const serializeAws_restJson1LoRaWANUpdateGatewayTaskCreate = (input, context) => {
8356
8259
  return {
8357
- ...(input.CurrentVersion !== undefined &&
8358
- input.CurrentVersion !== null && {
8260
+ ...(input.CurrentVersion != null && {
8359
8261
  CurrentVersion: serializeAws_restJson1LoRaWANGatewayVersion(input.CurrentVersion, context),
8360
8262
  }),
8361
- ...(input.SigKeyCrc !== undefined && input.SigKeyCrc !== null && { SigKeyCrc: input.SigKeyCrc }),
8362
- ...(input.UpdateSignature !== undefined &&
8363
- input.UpdateSignature !== null && { UpdateSignature: input.UpdateSignature }),
8364
- ...(input.UpdateVersion !== undefined &&
8365
- input.UpdateVersion !== null && {
8263
+ ...(input.SigKeyCrc != null && { SigKeyCrc: input.SigKeyCrc }),
8264
+ ...(input.UpdateSignature != null && { UpdateSignature: input.UpdateSignature }),
8265
+ ...(input.UpdateVersion != null && {
8366
8266
  UpdateVersion: serializeAws_restJson1LoRaWANGatewayVersion(input.UpdateVersion, context),
8367
8267
  }),
8368
8268
  };
8369
8269
  };
8370
8270
  const serializeAws_restJson1MulticastWirelessMetadata = (input, context) => {
8371
8271
  return {
8372
- ...(input.LoRaWAN !== undefined &&
8373
- input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticastMetadata(input.LoRaWAN, context) }),
8272
+ ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticastMetadata(input.LoRaWAN, context) }),
8374
8273
  };
8375
8274
  };
8376
8275
  const serializeAws_restJson1NetIdFilters = (input, context) => {
@@ -8385,16 +8284,16 @@ const serializeAws_restJson1NetIdFilters = (input, context) => {
8385
8284
  };
8386
8285
  const serializeAws_restJson1OtaaV1_0_x = (input, context) => {
8387
8286
  return {
8388
- ...(input.AppEui !== undefined && input.AppEui !== null && { AppEui: input.AppEui }),
8389
- ...(input.AppKey !== undefined && input.AppKey !== null && { AppKey: input.AppKey }),
8390
- ...(input.GenAppKey !== undefined && input.GenAppKey !== null && { GenAppKey: input.GenAppKey }),
8287
+ ...(input.AppEui != null && { AppEui: input.AppEui }),
8288
+ ...(input.AppKey != null && { AppKey: input.AppKey }),
8289
+ ...(input.GenAppKey != null && { GenAppKey: input.GenAppKey }),
8391
8290
  };
8392
8291
  };
8393
8292
  const serializeAws_restJson1OtaaV1_1 = (input, context) => {
8394
8293
  return {
8395
- ...(input.AppKey !== undefined && input.AppKey !== null && { AppKey: input.AppKey }),
8396
- ...(input.JoinEui !== undefined && input.JoinEui !== null && { JoinEui: input.JoinEui }),
8397
- ...(input.NwkKey !== undefined && input.NwkKey !== null && { NwkKey: input.NwkKey }),
8294
+ ...(input.AppKey != null && { AppKey: input.AppKey }),
8295
+ ...(input.JoinEui != null && { JoinEui: input.JoinEui }),
8296
+ ...(input.NwkKey != null && { NwkKey: input.NwkKey }),
8398
8297
  };
8399
8298
  };
8400
8299
  const serializeAws_restJson1PositionCoordinate = (input, context) => {
@@ -8409,86 +8308,78 @@ const serializeAws_restJson1PositionCoordinate = (input, context) => {
8409
8308
  };
8410
8309
  const serializeAws_restJson1Positioning = (input, context) => {
8411
8310
  return {
8412
- ...(input.ClockSync !== undefined && input.ClockSync !== null && { ClockSync: input.ClockSync }),
8413
- ...(input.Gnss !== undefined && input.Gnss !== null && { Gnss: input.Gnss }),
8414
- ...(input.Stream !== undefined && input.Stream !== null && { Stream: input.Stream }),
8311
+ ...(input.ClockSync != null && { ClockSync: input.ClockSync }),
8312
+ ...(input.Gnss != null && { Gnss: input.Gnss }),
8313
+ ...(input.Stream != null && { Stream: input.Stream }),
8415
8314
  };
8416
8315
  };
8417
8316
  const serializeAws_restJson1PositionSolverConfigurations = (input, context) => {
8418
8317
  return {
8419
- ...(input.SemtechGnss !== undefined &&
8420
- input.SemtechGnss !== null && {
8318
+ ...(input.SemtechGnss != null && {
8421
8319
  SemtechGnss: serializeAws_restJson1SemtechGnssConfiguration(input.SemtechGnss, context),
8422
8320
  }),
8423
8321
  };
8424
8322
  };
8425
8323
  const serializeAws_restJson1ProximityEventConfiguration = (input, context) => {
8426
8324
  return {
8427
- ...(input.Sidewalk !== undefined &&
8428
- input.Sidewalk !== null && {
8325
+ ...(input.Sidewalk != null && {
8429
8326
  Sidewalk: serializeAws_restJson1SidewalkEventNotificationConfigurations(input.Sidewalk, context),
8430
8327
  }),
8431
- ...(input.WirelessDeviceIdEventTopic !== undefined &&
8432
- input.WirelessDeviceIdEventTopic !== null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }),
8328
+ ...(input.WirelessDeviceIdEventTopic != null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }),
8433
8329
  };
8434
8330
  };
8435
8331
  const serializeAws_restJson1ProximityResourceTypeEventConfiguration = (input, context) => {
8436
8332
  return {
8437
- ...(input.Sidewalk !== undefined &&
8438
- input.Sidewalk !== null && {
8333
+ ...(input.Sidewalk != null && {
8439
8334
  Sidewalk: serializeAws_restJson1SidewalkResourceTypeEventConfiguration(input.Sidewalk, context),
8440
8335
  }),
8441
8336
  };
8442
8337
  };
8443
8338
  const serializeAws_restJson1SemtechGnssConfiguration = (input, context) => {
8444
8339
  return {
8445
- ...(input.Fec !== undefined && input.Fec !== null && { Fec: input.Fec }),
8446
- ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
8340
+ ...(input.Fec != null && { Fec: input.Fec }),
8341
+ ...(input.Status != null && { Status: input.Status }),
8447
8342
  };
8448
8343
  };
8449
8344
  const serializeAws_restJson1SessionKeysAbpV1_0_x = (input, context) => {
8450
8345
  return {
8451
- ...(input.AppSKey !== undefined && input.AppSKey !== null && { AppSKey: input.AppSKey }),
8452
- ...(input.NwkSKey !== undefined && input.NwkSKey !== null && { NwkSKey: input.NwkSKey }),
8346
+ ...(input.AppSKey != null && { AppSKey: input.AppSKey }),
8347
+ ...(input.NwkSKey != null && { NwkSKey: input.NwkSKey }),
8453
8348
  };
8454
8349
  };
8455
8350
  const serializeAws_restJson1SessionKeysAbpV1_1 = (input, context) => {
8456
8351
  return {
8457
- ...(input.AppSKey !== undefined && input.AppSKey !== null && { AppSKey: input.AppSKey }),
8458
- ...(input.FNwkSIntKey !== undefined && input.FNwkSIntKey !== null && { FNwkSIntKey: input.FNwkSIntKey }),
8459
- ...(input.NwkSEncKey !== undefined && input.NwkSEncKey !== null && { NwkSEncKey: input.NwkSEncKey }),
8460
- ...(input.SNwkSIntKey !== undefined && input.SNwkSIntKey !== null && { SNwkSIntKey: input.SNwkSIntKey }),
8352
+ ...(input.AppSKey != null && { AppSKey: input.AppSKey }),
8353
+ ...(input.FNwkSIntKey != null && { FNwkSIntKey: input.FNwkSIntKey }),
8354
+ ...(input.NwkSEncKey != null && { NwkSEncKey: input.NwkSEncKey }),
8355
+ ...(input.SNwkSIntKey != null && { SNwkSIntKey: input.SNwkSIntKey }),
8461
8356
  };
8462
8357
  };
8463
8358
  const serializeAws_restJson1SidewalkAccountInfo = (input, context) => {
8464
8359
  return {
8465
- ...(input.AmazonId !== undefined && input.AmazonId !== null && { AmazonId: input.AmazonId }),
8466
- ...(input.AppServerPrivateKey !== undefined &&
8467
- input.AppServerPrivateKey !== null && { AppServerPrivateKey: input.AppServerPrivateKey }),
8360
+ ...(input.AmazonId != null && { AmazonId: input.AmazonId }),
8361
+ ...(input.AppServerPrivateKey != null && { AppServerPrivateKey: input.AppServerPrivateKey }),
8468
8362
  };
8469
8363
  };
8470
8364
  const serializeAws_restJson1SidewalkEventNotificationConfigurations = (input, context) => {
8471
8365
  return {
8472
- ...(input.AmazonIdEventTopic !== undefined &&
8473
- input.AmazonIdEventTopic !== null && { AmazonIdEventTopic: input.AmazonIdEventTopic }),
8366
+ ...(input.AmazonIdEventTopic != null && { AmazonIdEventTopic: input.AmazonIdEventTopic }),
8474
8367
  };
8475
8368
  };
8476
8369
  const serializeAws_restJson1SidewalkResourceTypeEventConfiguration = (input, context) => {
8477
8370
  return {
8478
- ...(input.WirelessDeviceEventTopic !== undefined &&
8479
- input.WirelessDeviceEventTopic !== null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }),
8371
+ ...(input.WirelessDeviceEventTopic != null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }),
8480
8372
  };
8481
8373
  };
8482
8374
  const serializeAws_restJson1SidewalkSendDataToDevice = (input, context) => {
8483
8375
  return {
8484
- ...(input.MessageType !== undefined && input.MessageType !== null && { MessageType: input.MessageType }),
8485
- ...(input.Seq !== undefined && input.Seq !== null && { Seq: input.Seq }),
8376
+ ...(input.MessageType != null && { MessageType: input.MessageType }),
8377
+ ...(input.Seq != null && { Seq: input.Seq }),
8486
8378
  };
8487
8379
  };
8488
8380
  const serializeAws_restJson1SidewalkUpdateAccount = (input, context) => {
8489
8381
  return {
8490
- ...(input.AppServerPrivateKey !== undefined &&
8491
- input.AppServerPrivateKey !== null && { AppServerPrivateKey: input.AppServerPrivateKey }),
8382
+ ...(input.AppServerPrivateKey != null && { AppServerPrivateKey: input.AppServerPrivateKey }),
8492
8383
  };
8493
8384
  };
8494
8385
  const serializeAws_restJson1SubBands = (input, context) => {
@@ -8503,8 +8394,8 @@ const serializeAws_restJson1SubBands = (input, context) => {
8503
8394
  };
8504
8395
  const serializeAws_restJson1Tag = (input, context) => {
8505
8396
  return {
8506
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
8507
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
8397
+ ...(input.Key != null && { Key: input.Key }),
8398
+ ...(input.Value != null && { Value: input.Value }),
8508
8399
  };
8509
8400
  };
8510
8401
  const serializeAws_restJson1TagList = (input, context) => {
@@ -8519,43 +8410,38 @@ const serializeAws_restJson1TagList = (input, context) => {
8519
8410
  };
8520
8411
  const serializeAws_restJson1TraceContent = (input, context) => {
8521
8412
  return {
8522
- ...(input.LogLevel !== undefined && input.LogLevel !== null && { LogLevel: input.LogLevel }),
8523
- ...(input.WirelessDeviceFrameInfo !== undefined &&
8524
- input.WirelessDeviceFrameInfo !== null && { WirelessDeviceFrameInfo: input.WirelessDeviceFrameInfo }),
8413
+ ...(input.LogLevel != null && { LogLevel: input.LogLevel }),
8414
+ ...(input.WirelessDeviceFrameInfo != null && { WirelessDeviceFrameInfo: input.WirelessDeviceFrameInfo }),
8525
8415
  };
8526
8416
  };
8527
8417
  const serializeAws_restJson1UpdateAbpV1_0_x = (input, context) => {
8528
8418
  return {
8529
- ...(input.FCntStart !== undefined && input.FCntStart !== null && { FCntStart: input.FCntStart }),
8419
+ ...(input.FCntStart != null && { FCntStart: input.FCntStart }),
8530
8420
  };
8531
8421
  };
8532
8422
  const serializeAws_restJson1UpdateAbpV1_1 = (input, context) => {
8533
8423
  return {
8534
- ...(input.FCntStart !== undefined && input.FCntStart !== null && { FCntStart: input.FCntStart }),
8424
+ ...(input.FCntStart != null && { FCntStart: input.FCntStart }),
8535
8425
  };
8536
8426
  };
8537
8427
  const serializeAws_restJson1UpdateFPorts = (input, context) => {
8538
8428
  return {
8539
- ...(input.Positioning !== undefined &&
8540
- input.Positioning !== null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }),
8429
+ ...(input.Positioning != null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }),
8541
8430
  };
8542
8431
  };
8543
8432
  const serializeAws_restJson1UpdateWirelessGatewayTaskCreate = (input, context) => {
8544
8433
  return {
8545
- ...(input.LoRaWAN !== undefined &&
8546
- input.LoRaWAN !== null && {
8434
+ ...(input.LoRaWAN != null && {
8547
8435
  LoRaWAN: serializeAws_restJson1LoRaWANUpdateGatewayTaskCreate(input.LoRaWAN, context),
8548
8436
  }),
8549
- ...(input.UpdateDataRole !== undefined &&
8550
- input.UpdateDataRole !== null && { UpdateDataRole: input.UpdateDataRole }),
8551
- ...(input.UpdateDataSource !== undefined &&
8552
- input.UpdateDataSource !== null && { UpdateDataSource: input.UpdateDataSource }),
8437
+ ...(input.UpdateDataRole != null && { UpdateDataRole: input.UpdateDataRole }),
8438
+ ...(input.UpdateDataSource != null && { UpdateDataSource: input.UpdateDataSource }),
8553
8439
  };
8554
8440
  };
8555
8441
  const serializeAws_restJson1WirelessDeviceEventLogOption = (input, context) => {
8556
8442
  return {
8557
- ...(input.Event !== undefined && input.Event !== null && { Event: input.Event }),
8558
- ...(input.LogLevel !== undefined && input.LogLevel !== null && { LogLevel: input.LogLevel }),
8443
+ ...(input.Event != null && { Event: input.Event }),
8444
+ ...(input.LogLevel != null && { LogLevel: input.LogLevel }),
8559
8445
  };
8560
8446
  };
8561
8447
  const serializeAws_restJson1WirelessDeviceEventLogOptionList = (input, context) => {
@@ -8580,12 +8466,11 @@ const serializeAws_restJson1WirelessDeviceList = (input, context) => {
8580
8466
  };
8581
8467
  const serializeAws_restJson1WirelessDeviceLogOption = (input, context) => {
8582
8468
  return {
8583
- ...(input.Events !== undefined &&
8584
- input.Events !== null && {
8469
+ ...(input.Events != null && {
8585
8470
  Events: serializeAws_restJson1WirelessDeviceEventLogOptionList(input.Events, context),
8586
8471
  }),
8587
- ...(input.LogLevel !== undefined && input.LogLevel !== null && { LogLevel: input.LogLevel }),
8588
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
8472
+ ...(input.LogLevel != null && { LogLevel: input.LogLevel }),
8473
+ ...(input.Type != null && { Type: input.Type }),
8589
8474
  };
8590
8475
  };
8591
8476
  const serializeAws_restJson1WirelessDeviceLogOptionList = (input, context) => {
@@ -8600,8 +8485,8 @@ const serializeAws_restJson1WirelessDeviceLogOptionList = (input, context) => {
8600
8485
  };
8601
8486
  const serializeAws_restJson1WirelessGatewayEventLogOption = (input, context) => {
8602
8487
  return {
8603
- ...(input.Event !== undefined && input.Event !== null && { Event: input.Event }),
8604
- ...(input.LogLevel !== undefined && input.LogLevel !== null && { LogLevel: input.LogLevel }),
8488
+ ...(input.Event != null && { Event: input.Event }),
8489
+ ...(input.LogLevel != null && { LogLevel: input.LogLevel }),
8605
8490
  };
8606
8491
  };
8607
8492
  const serializeAws_restJson1WirelessGatewayEventLogOptionList = (input, context) => {
@@ -8626,12 +8511,11 @@ const serializeAws_restJson1WirelessGatewayList = (input, context) => {
8626
8511
  };
8627
8512
  const serializeAws_restJson1WirelessGatewayLogOption = (input, context) => {
8628
8513
  return {
8629
- ...(input.Events !== undefined &&
8630
- input.Events !== null && {
8514
+ ...(input.Events != null && {
8631
8515
  Events: serializeAws_restJson1WirelessGatewayEventLogOptionList(input.Events, context),
8632
8516
  }),
8633
- ...(input.LogLevel !== undefined && input.LogLevel !== null && { LogLevel: input.LogLevel }),
8634
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
8517
+ ...(input.LogLevel != null && { LogLevel: input.LogLevel }),
8518
+ ...(input.Type != null && { Type: input.Type }),
8635
8519
  };
8636
8520
  };
8637
8521
  const serializeAws_restJson1WirelessGatewayLogOptionList = (input, context) => {
@@ -8646,17 +8530,17 @@ const serializeAws_restJson1WirelessGatewayLogOptionList = (input, context) => {
8646
8530
  };
8647
8531
  const serializeAws_restJson1WirelessMetadata = (input, context) => {
8648
8532
  return {
8649
- ...(input.LoRaWAN !== undefined &&
8650
- input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANSendDataToDevice(input.LoRaWAN, context) }),
8651
- ...(input.Sidewalk !== undefined &&
8652
- input.Sidewalk !== null && { Sidewalk: serializeAws_restJson1SidewalkSendDataToDevice(input.Sidewalk, context) }),
8533
+ ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANSendDataToDevice(input.LoRaWAN, context) }),
8534
+ ...(input.Sidewalk != null && {
8535
+ Sidewalk: serializeAws_restJson1SidewalkSendDataToDevice(input.Sidewalk, context),
8536
+ }),
8653
8537
  };
8654
8538
  };
8655
8539
  const deserializeAws_restJson1AbpV1_0_x = (output, context) => {
8656
8540
  return {
8657
8541
  DevAddr: (0, smithy_client_1.expectString)(output.DevAddr),
8658
8542
  FCntStart: (0, smithy_client_1.expectInt32)(output.FCntStart),
8659
- SessionKeys: output.SessionKeys !== undefined && output.SessionKeys !== null
8543
+ SessionKeys: output.SessionKeys != null
8660
8544
  ? deserializeAws_restJson1SessionKeysAbpV1_0_x(output.SessionKeys, context)
8661
8545
  : undefined,
8662
8546
  };
@@ -8665,9 +8549,7 @@ const deserializeAws_restJson1AbpV1_1 = (output, context) => {
8665
8549
  return {
8666
8550
  DevAddr: (0, smithy_client_1.expectString)(output.DevAddr),
8667
8551
  FCntStart: (0, smithy_client_1.expectInt32)(output.FCntStart),
8668
- SessionKeys: output.SessionKeys !== undefined && output.SessionKeys !== null
8669
- ? deserializeAws_restJson1SessionKeysAbpV1_1(output.SessionKeys, context)
8670
- : undefined,
8552
+ SessionKeys: output.SessionKeys != null ? deserializeAws_restJson1SessionKeysAbpV1_1(output.SessionKeys, context) : undefined,
8671
8553
  };
8672
8554
  };
8673
8555
  const deserializeAws_restJson1Accuracy = (output, context) => {
@@ -8684,7 +8566,7 @@ const deserializeAws_restJson1CertificateList = (output, context) => {
8684
8566
  };
8685
8567
  const deserializeAws_restJson1ConnectionStatusEventConfiguration = (output, context) => {
8686
8568
  return {
8687
- LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
8569
+ LoRaWAN: output.LoRaWAN != null
8688
8570
  ? deserializeAws_restJson1LoRaWANConnectionStatusEventNotificationConfigurations(output.LoRaWAN, context)
8689
8571
  : undefined,
8690
8572
  WirelessGatewayIdEventTopic: (0, smithy_client_1.expectString)(output.WirelessGatewayIdEventTopic),
@@ -8692,7 +8574,7 @@ const deserializeAws_restJson1ConnectionStatusEventConfiguration = (output, cont
8692
8574
  };
8693
8575
  const deserializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration = (output, context) => {
8694
8576
  return {
8695
- LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
8577
+ LoRaWAN: output.LoRaWAN != null
8696
8578
  ? deserializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguration(output.LoRaWAN, context)
8697
8579
  : undefined,
8698
8580
  };
@@ -8749,7 +8631,7 @@ const deserializeAws_restJson1DeviceProfileList = (output, context) => {
8749
8631
  };
8750
8632
  const deserializeAws_restJson1DeviceRegistrationStateEventConfiguration = (output, context) => {
8751
8633
  return {
8752
- Sidewalk: output.Sidewalk !== undefined && output.Sidewalk !== null
8634
+ Sidewalk: output.Sidewalk != null
8753
8635
  ? deserializeAws_restJson1SidewalkEventNotificationConfigurations(output.Sidewalk, context)
8754
8636
  : undefined,
8755
8637
  WirelessDeviceIdEventTopic: (0, smithy_client_1.expectString)(output.WirelessDeviceIdEventTopic),
@@ -8757,16 +8639,14 @@ const deserializeAws_restJson1DeviceRegistrationStateEventConfiguration = (outpu
8757
8639
  };
8758
8640
  const deserializeAws_restJson1DeviceRegistrationStateResourceTypeEventConfiguration = (output, context) => {
8759
8641
  return {
8760
- Sidewalk: output.Sidewalk !== undefined && output.Sidewalk !== null
8642
+ Sidewalk: output.Sidewalk != null
8761
8643
  ? deserializeAws_restJson1SidewalkResourceTypeEventConfiguration(output.Sidewalk, context)
8762
8644
  : undefined,
8763
8645
  };
8764
8646
  };
8765
8647
  const deserializeAws_restJson1DownlinkQueueMessage = (output, context) => {
8766
8648
  return {
8767
- LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
8768
- ? deserializeAws_restJson1LoRaWANSendDataToDevice(output.LoRaWAN, context)
8769
- : undefined,
8649
+ LoRaWAN: output.LoRaWAN != null ? deserializeAws_restJson1LoRaWANSendDataToDevice(output.LoRaWAN, context) : undefined,
8770
8650
  MessageId: (0, smithy_client_1.expectString)(output.MessageId),
8771
8651
  ReceivedAt: (0, smithy_client_1.expectString)(output.ReceivedAt),
8772
8652
  TransmitMode: (0, smithy_client_1.expectInt32)(output.TransmitMode),
@@ -8785,7 +8665,7 @@ const deserializeAws_restJson1DownlinkQueueMessagesList = (output, context) => {
8785
8665
  };
8786
8666
  const deserializeAws_restJson1EventConfigurationItem = (output, context) => {
8787
8667
  return {
8788
- Events: output.Events !== undefined && output.Events !== null
8668
+ Events: output.Events != null
8789
8669
  ? deserializeAws_restJson1EventNotificationItemConfigurations(output.Events, context)
8790
8670
  : undefined,
8791
8671
  Identifier: (0, smithy_client_1.expectString)(output.Identifier),
@@ -8806,16 +8686,14 @@ const deserializeAws_restJson1EventConfigurationsList = (output, context) => {
8806
8686
  };
8807
8687
  const deserializeAws_restJson1EventNotificationItemConfigurations = (output, context) => {
8808
8688
  return {
8809
- ConnectionStatus: output.ConnectionStatus !== undefined && output.ConnectionStatus !== null
8689
+ ConnectionStatus: output.ConnectionStatus != null
8810
8690
  ? deserializeAws_restJson1ConnectionStatusEventConfiguration(output.ConnectionStatus, context)
8811
8691
  : undefined,
8812
- DeviceRegistrationState: output.DeviceRegistrationState !== undefined && output.DeviceRegistrationState !== null
8692
+ DeviceRegistrationState: output.DeviceRegistrationState != null
8813
8693
  ? deserializeAws_restJson1DeviceRegistrationStateEventConfiguration(output.DeviceRegistrationState, context)
8814
8694
  : undefined,
8815
- Join: output.Join !== undefined && output.Join !== null
8816
- ? deserializeAws_restJson1JoinEventConfiguration(output.Join, context)
8817
- : undefined,
8818
- Proximity: output.Proximity !== undefined && output.Proximity !== null
8695
+ Join: output.Join != null ? deserializeAws_restJson1JoinEventConfiguration(output.Join, context) : undefined,
8696
+ Proximity: output.Proximity != null
8819
8697
  ? deserializeAws_restJson1ProximityEventConfiguration(output.Proximity, context)
8820
8698
  : undefined,
8821
8699
  };
@@ -8836,9 +8714,7 @@ const deserializeAws_restJson1FPorts = (output, context) => {
8836
8714
  ClockSync: (0, smithy_client_1.expectInt32)(output.ClockSync),
8837
8715
  Fuota: (0, smithy_client_1.expectInt32)(output.Fuota),
8838
8716
  Multicast: (0, smithy_client_1.expectInt32)(output.Multicast),
8839
- Positioning: output.Positioning !== undefined && output.Positioning !== null
8840
- ? deserializeAws_restJson1Positioning(output.Positioning, context)
8841
- : undefined,
8717
+ Positioning: output.Positioning != null ? deserializeAws_restJson1Positioning(output.Positioning, context) : undefined,
8842
8718
  };
8843
8719
  };
8844
8720
  const deserializeAws_restJson1FuotaTask = (output, context) => {
@@ -8883,7 +8759,7 @@ const deserializeAws_restJson1JoinEuiRange = (output, context) => {
8883
8759
  };
8884
8760
  const deserializeAws_restJson1JoinEventConfiguration = (output, context) => {
8885
8761
  return {
8886
- LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
8762
+ LoRaWAN: output.LoRaWAN != null
8887
8763
  ? deserializeAws_restJson1LoRaWANJoinEventNotificationConfigurations(output.LoRaWAN, context)
8888
8764
  : undefined,
8889
8765
  WirelessDeviceIdEventTopic: (0, smithy_client_1.expectString)(output.WirelessDeviceIdEventTopic),
@@ -8891,7 +8767,7 @@ const deserializeAws_restJson1JoinEventConfiguration = (output, context) => {
8891
8767
  };
8892
8768
  const deserializeAws_restJson1JoinResourceTypeEventConfiguration = (output, context) => {
8893
8769
  return {
8894
- LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
8770
+ LoRaWAN: output.LoRaWAN != null
8895
8771
  ? deserializeAws_restJson1LoRaWANJoinResourceTypeEventConfiguration(output.LoRaWAN, context)
8896
8772
  : undefined,
8897
8773
  };
@@ -8908,23 +8784,13 @@ const deserializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfigurat
8908
8784
  };
8909
8785
  const deserializeAws_restJson1LoRaWANDevice = (output, context) => {
8910
8786
  return {
8911
- AbpV1_0_x: output.AbpV1_0_x !== undefined && output.AbpV1_0_x !== null
8912
- ? deserializeAws_restJson1AbpV1_0_x(output.AbpV1_0_x, context)
8913
- : undefined,
8914
- AbpV1_1: output.AbpV1_1 !== undefined && output.AbpV1_1 !== null
8915
- ? deserializeAws_restJson1AbpV1_1(output.AbpV1_1, context)
8916
- : undefined,
8787
+ AbpV1_0_x: output.AbpV1_0_x != null ? deserializeAws_restJson1AbpV1_0_x(output.AbpV1_0_x, context) : undefined,
8788
+ AbpV1_1: output.AbpV1_1 != null ? deserializeAws_restJson1AbpV1_1(output.AbpV1_1, context) : undefined,
8917
8789
  DevEui: (0, smithy_client_1.expectString)(output.DevEui),
8918
8790
  DeviceProfileId: (0, smithy_client_1.expectString)(output.DeviceProfileId),
8919
- FPorts: output.FPorts !== undefined && output.FPorts !== null
8920
- ? deserializeAws_restJson1FPorts(output.FPorts, context)
8921
- : undefined,
8922
- OtaaV1_0_x: output.OtaaV1_0_x !== undefined && output.OtaaV1_0_x !== null
8923
- ? deserializeAws_restJson1OtaaV1_0_x(output.OtaaV1_0_x, context)
8924
- : undefined,
8925
- OtaaV1_1: output.OtaaV1_1 !== undefined && output.OtaaV1_1 !== null
8926
- ? deserializeAws_restJson1OtaaV1_1(output.OtaaV1_1, context)
8927
- : undefined,
8791
+ FPorts: output.FPorts != null ? deserializeAws_restJson1FPorts(output.FPorts, context) : undefined,
8792
+ OtaaV1_0_x: output.OtaaV1_0_x != null ? deserializeAws_restJson1OtaaV1_0_x(output.OtaaV1_0_x, context) : undefined,
8793
+ OtaaV1_1: output.OtaaV1_1 != null ? deserializeAws_restJson1OtaaV1_1(output.OtaaV1_1, context) : undefined,
8928
8794
  ServiceProfileId: (0, smithy_client_1.expectString)(output.ServiceProfileId),
8929
8795
  };
8930
8796
  };
@@ -8934,7 +8800,7 @@ const deserializeAws_restJson1LoRaWANDeviceMetadata = (output, context) => {
8934
8800
  DevEui: (0, smithy_client_1.expectString)(output.DevEui),
8935
8801
  FPort: (0, smithy_client_1.expectInt32)(output.FPort),
8936
8802
  Frequency: (0, smithy_client_1.expectInt32)(output.Frequency),
8937
- Gateways: output.Gateways !== undefined && output.Gateways !== null
8803
+ Gateways: output.Gateways != null
8938
8804
  ? deserializeAws_restJson1LoRaWANGatewayMetadataList(output.Gateways, context)
8939
8805
  : undefined,
8940
8806
  Timestamp: (0, smithy_client_1.expectString)(output.Timestamp),
@@ -8944,7 +8810,7 @@ const deserializeAws_restJson1LoRaWANDeviceProfile = (output, context) => {
8944
8810
  return {
8945
8811
  ClassBTimeout: (0, smithy_client_1.expectInt32)(output.ClassBTimeout),
8946
8812
  ClassCTimeout: (0, smithy_client_1.expectInt32)(output.ClassCTimeout),
8947
- FactoryPresetFreqsList: output.FactoryPresetFreqsList !== undefined && output.FactoryPresetFreqsList !== null
8813
+ FactoryPresetFreqsList: output.FactoryPresetFreqsList != null
8948
8814
  ? deserializeAws_restJson1FactoryPresetFreqsList(output.FactoryPresetFreqsList, context)
8949
8815
  : undefined,
8950
8816
  MacVersion: (0, smithy_client_1.expectString)(output.MacVersion),
@@ -8968,29 +8834,23 @@ const deserializeAws_restJson1LoRaWANDeviceProfile = (output, context) => {
8968
8834
  const deserializeAws_restJson1LoRaWANFuotaTaskGetInfo = (output, context) => {
8969
8835
  return {
8970
8836
  RfRegion: (0, smithy_client_1.expectString)(output.RfRegion),
8971
- StartTime: output.StartTime !== undefined && output.StartTime !== null
8972
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartTime))
8973
- : undefined,
8837
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartTime)) : undefined,
8974
8838
  };
8975
8839
  };
8976
8840
  const deserializeAws_restJson1LoRaWANGateway = (output, context) => {
8977
8841
  return {
8978
8842
  GatewayEui: (0, smithy_client_1.expectString)(output.GatewayEui),
8979
- JoinEuiFilters: output.JoinEuiFilters !== undefined && output.JoinEuiFilters !== null
8843
+ JoinEuiFilters: output.JoinEuiFilters != null
8980
8844
  ? deserializeAws_restJson1JoinEuiFilters(output.JoinEuiFilters, context)
8981
8845
  : undefined,
8982
- NetIdFilters: output.NetIdFilters !== undefined && output.NetIdFilters !== null
8983
- ? deserializeAws_restJson1NetIdFilters(output.NetIdFilters, context)
8984
- : undefined,
8846
+ NetIdFilters: output.NetIdFilters != null ? deserializeAws_restJson1NetIdFilters(output.NetIdFilters, context) : undefined,
8985
8847
  RfRegion: (0, smithy_client_1.expectString)(output.RfRegion),
8986
- SubBands: output.SubBands !== undefined && output.SubBands !== null
8987
- ? deserializeAws_restJson1SubBands(output.SubBands, context)
8988
- : undefined,
8848
+ SubBands: output.SubBands != null ? deserializeAws_restJson1SubBands(output.SubBands, context) : undefined,
8989
8849
  };
8990
8850
  };
8991
8851
  const deserializeAws_restJson1LoRaWANGatewayCurrentVersion = (output, context) => {
8992
8852
  return {
8993
- CurrentVersion: output.CurrentVersion !== undefined && output.CurrentVersion !== null
8853
+ CurrentVersion: output.CurrentVersion != null
8994
8854
  ? deserializeAws_restJson1LoRaWANGatewayVersion(output.CurrentVersion, context)
8995
8855
  : undefined,
8996
8856
  };
@@ -9070,9 +8930,7 @@ const deserializeAws_restJson1LoRaWANMulticastSession = (output, context) => {
9070
8930
  return {
9071
8931
  DlDr: (0, smithy_client_1.expectInt32)(output.DlDr),
9072
8932
  DlFreq: (0, smithy_client_1.expectInt32)(output.DlFreq),
9073
- SessionStartTime: output.SessionStartTime !== undefined && output.SessionStartTime !== null
9074
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SessionStartTime))
9075
- : undefined,
8933
+ SessionStartTime: output.SessionStartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SessionStartTime)) : undefined,
9076
8934
  SessionTimeout: (0, smithy_client_1.expectInt32)(output.SessionTimeout),
9077
8935
  };
9078
8936
  };
@@ -9083,22 +8941,22 @@ const deserializeAws_restJson1LoRaWANSendDataToDevice = (output, context) => {
9083
8941
  };
9084
8942
  const deserializeAws_restJson1LoRaWANUpdateGatewayTaskCreate = (output, context) => {
9085
8943
  return {
9086
- CurrentVersion: output.CurrentVersion !== undefined && output.CurrentVersion !== null
8944
+ CurrentVersion: output.CurrentVersion != null
9087
8945
  ? deserializeAws_restJson1LoRaWANGatewayVersion(output.CurrentVersion, context)
9088
8946
  : undefined,
9089
8947
  SigKeyCrc: (0, smithy_client_1.expectLong)(output.SigKeyCrc),
9090
8948
  UpdateSignature: (0, smithy_client_1.expectString)(output.UpdateSignature),
9091
- UpdateVersion: output.UpdateVersion !== undefined && output.UpdateVersion !== null
8949
+ UpdateVersion: output.UpdateVersion != null
9092
8950
  ? deserializeAws_restJson1LoRaWANGatewayVersion(output.UpdateVersion, context)
9093
8951
  : undefined,
9094
8952
  };
9095
8953
  };
9096
8954
  const deserializeAws_restJson1LoRaWANUpdateGatewayTaskEntry = (output, context) => {
9097
8955
  return {
9098
- CurrentVersion: output.CurrentVersion !== undefined && output.CurrentVersion !== null
8956
+ CurrentVersion: output.CurrentVersion != null
9099
8957
  ? deserializeAws_restJson1LoRaWANGatewayVersion(output.CurrentVersion, context)
9100
8958
  : undefined,
9101
- UpdateVersion: output.UpdateVersion !== undefined && output.UpdateVersion !== null
8959
+ UpdateVersion: output.UpdateVersion != null
9102
8960
  ? deserializeAws_restJson1LoRaWANGatewayVersion(output.UpdateVersion, context)
9103
8961
  : undefined,
9104
8962
  };
@@ -9184,9 +9042,7 @@ const deserializeAws_restJson1PositionConfigurationItem = (output, context) => {
9184
9042
  Destination: (0, smithy_client_1.expectString)(output.Destination),
9185
9043
  ResourceIdentifier: (0, smithy_client_1.expectString)(output.ResourceIdentifier),
9186
9044
  ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
9187
- Solvers: output.Solvers !== undefined && output.Solvers !== null
9188
- ? deserializeAws_restJson1PositionSolverDetails(output.Solvers, context)
9189
- : undefined,
9045
+ Solvers: output.Solvers != null ? deserializeAws_restJson1PositionSolverDetails(output.Solvers, context) : undefined,
9190
9046
  };
9191
9047
  };
9192
9048
  const deserializeAws_restJson1PositionConfigurationList = (output, context) => {
@@ -9220,14 +9076,12 @@ const deserializeAws_restJson1Positioning = (output, context) => {
9220
9076
  };
9221
9077
  const deserializeAws_restJson1PositionSolverDetails = (output, context) => {
9222
9078
  return {
9223
- SemtechGnss: output.SemtechGnss !== undefined && output.SemtechGnss !== null
9224
- ? deserializeAws_restJson1SemtechGnssDetail(output.SemtechGnss, context)
9225
- : undefined,
9079
+ SemtechGnss: output.SemtechGnss != null ? deserializeAws_restJson1SemtechGnssDetail(output.SemtechGnss, context) : undefined,
9226
9080
  };
9227
9081
  };
9228
9082
  const deserializeAws_restJson1ProximityEventConfiguration = (output, context) => {
9229
9083
  return {
9230
- Sidewalk: output.Sidewalk !== undefined && output.Sidewalk !== null
9084
+ Sidewalk: output.Sidewalk != null
9231
9085
  ? deserializeAws_restJson1SidewalkEventNotificationConfigurations(output.Sidewalk, context)
9232
9086
  : undefined,
9233
9087
  WirelessDeviceIdEventTopic: (0, smithy_client_1.expectString)(output.WirelessDeviceIdEventTopic),
@@ -9235,7 +9089,7 @@ const deserializeAws_restJson1ProximityEventConfiguration = (output, context) =>
9235
9089
  };
9236
9090
  const deserializeAws_restJson1ProximityResourceTypeEventConfiguration = (output, context) => {
9237
9091
  return {
9238
- Sidewalk: output.Sidewalk !== undefined && output.Sidewalk !== null
9092
+ Sidewalk: output.Sidewalk != null
9239
9093
  ? deserializeAws_restJson1SidewalkResourceTypeEventConfiguration(output.Sidewalk, context)
9240
9094
  : undefined,
9241
9095
  };
@@ -9307,7 +9161,7 @@ const deserializeAws_restJson1SidewalkAccountList = (output, context) => {
9307
9161
  const deserializeAws_restJson1SidewalkDevice = (output, context) => {
9308
9162
  return {
9309
9163
  AmazonId: (0, smithy_client_1.expectString)(output.AmazonId),
9310
- DeviceCertificates: output.DeviceCertificates !== undefined && output.DeviceCertificates !== null
9164
+ DeviceCertificates: output.DeviceCertificates != null
9311
9165
  ? deserializeAws_restJson1DeviceCertificateList(output.DeviceCertificates, context)
9312
9166
  : undefined,
9313
9167
  SidewalkId: (0, smithy_client_1.expectString)(output.SidewalkId),
@@ -9330,7 +9184,7 @@ const deserializeAws_restJson1SidewalkEventNotificationConfigurations = (output,
9330
9184
  const deserializeAws_restJson1SidewalkListDevice = (output, context) => {
9331
9185
  return {
9332
9186
  AmazonId: (0, smithy_client_1.expectString)(output.AmazonId),
9333
- DeviceCertificates: output.DeviceCertificates !== undefined && output.DeviceCertificates !== null
9187
+ DeviceCertificates: output.DeviceCertificates != null
9334
9188
  ? deserializeAws_restJson1DeviceCertificateList(output.DeviceCertificates, context)
9335
9189
  : undefined,
9336
9190
  SidewalkId: (0, smithy_client_1.expectString)(output.SidewalkId),
@@ -9378,7 +9232,7 @@ const deserializeAws_restJson1TraceContent = (output, context) => {
9378
9232
  };
9379
9233
  const deserializeAws_restJson1UpdateWirelessGatewayTaskCreate = (output, context) => {
9380
9234
  return {
9381
- LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
9235
+ LoRaWAN: output.LoRaWAN != null
9382
9236
  ? deserializeAws_restJson1LoRaWANUpdateGatewayTaskCreate(output.LoRaWAN, context)
9383
9237
  : undefined,
9384
9238
  UpdateDataRole: (0, smithy_client_1.expectString)(output.UpdateDataRole),
@@ -9389,7 +9243,7 @@ const deserializeAws_restJson1UpdateWirelessGatewayTaskEntry = (output, context)
9389
9243
  return {
9390
9244
  Arn: (0, smithy_client_1.expectString)(output.Arn),
9391
9245
  Id: (0, smithy_client_1.expectString)(output.Id),
9392
- LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
9246
+ LoRaWAN: output.LoRaWAN != null
9393
9247
  ? deserializeAws_restJson1LoRaWANUpdateGatewayTaskEntry(output.LoRaWAN, context)
9394
9248
  : undefined,
9395
9249
  };
@@ -9424,7 +9278,7 @@ const deserializeAws_restJson1WirelessDeviceList = (output, context) => {
9424
9278
  };
9425
9279
  const deserializeAws_restJson1WirelessDeviceLogOption = (output, context) => {
9426
9280
  return {
9427
- Events: output.Events !== undefined && output.Events !== null
9281
+ Events: output.Events != null
9428
9282
  ? deserializeAws_restJson1WirelessDeviceEventLogOptionList(output.Events, context)
9429
9283
  : undefined,
9430
9284
  LogLevel: (0, smithy_client_1.expectString)(output.LogLevel),
@@ -9449,15 +9303,11 @@ const deserializeAws_restJson1WirelessDeviceStatistics = (output, context) => {
9449
9303
  FuotaDeviceStatus: (0, smithy_client_1.expectString)(output.FuotaDeviceStatus),
9450
9304
  Id: (0, smithy_client_1.expectString)(output.Id),
9451
9305
  LastUplinkReceivedAt: (0, smithy_client_1.expectString)(output.LastUplinkReceivedAt),
9452
- LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
9453
- ? deserializeAws_restJson1LoRaWANListDevice(output.LoRaWAN, context)
9454
- : undefined,
9306
+ LoRaWAN: output.LoRaWAN != null ? deserializeAws_restJson1LoRaWANListDevice(output.LoRaWAN, context) : undefined,
9455
9307
  McGroupId: (0, smithy_client_1.expectInt32)(output.McGroupId),
9456
9308
  MulticastDeviceStatus: (0, smithy_client_1.expectString)(output.MulticastDeviceStatus),
9457
9309
  Name: (0, smithy_client_1.expectString)(output.Name),
9458
- Sidewalk: output.Sidewalk !== undefined && output.Sidewalk !== null
9459
- ? deserializeAws_restJson1SidewalkListDevice(output.Sidewalk, context)
9460
- : undefined,
9310
+ Sidewalk: output.Sidewalk != null ? deserializeAws_restJson1SidewalkListDevice(output.Sidewalk, context) : undefined,
9461
9311
  Type: (0, smithy_client_1.expectString)(output.Type),
9462
9312
  };
9463
9313
  };
@@ -9502,7 +9352,7 @@ const deserializeAws_restJson1WirelessGatewayList = (output, context) => {
9502
9352
  };
9503
9353
  const deserializeAws_restJson1WirelessGatewayLogOption = (output, context) => {
9504
9354
  return {
9505
- Events: output.Events !== undefined && output.Events !== null
9355
+ Events: output.Events != null
9506
9356
  ? deserializeAws_restJson1WirelessGatewayEventLogOptionList(output.Events, context)
9507
9357
  : undefined,
9508
9358
  LogLevel: (0, smithy_client_1.expectString)(output.LogLevel),
@@ -9526,9 +9376,7 @@ const deserializeAws_restJson1WirelessGatewayStatistics = (output, context) => {
9526
9376
  Description: (0, smithy_client_1.expectString)(output.Description),
9527
9377
  Id: (0, smithy_client_1.expectString)(output.Id),
9528
9378
  LastUplinkReceivedAt: (0, smithy_client_1.expectString)(output.LastUplinkReceivedAt),
9529
- LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
9530
- ? deserializeAws_restJson1LoRaWANGateway(output.LoRaWAN, context)
9531
- : undefined,
9379
+ LoRaWAN: output.LoRaWAN != null ? deserializeAws_restJson1LoRaWANGateway(output.LoRaWAN, context) : undefined,
9532
9380
  Name: (0, smithy_client_1.expectString)(output.Name),
9533
9381
  };
9534
9382
  };
@@ -9585,6 +9433,9 @@ const loadRestJsonErrorCode = (output, data) => {
9585
9433
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
9586
9434
  const sanitizeErrorCode = (rawValue) => {
9587
9435
  let cleanValue = rawValue;
9436
+ if (typeof cleanValue === "number") {
9437
+ cleanValue = cleanValue.toString();
9438
+ }
9588
9439
  if (cleanValue.indexOf(":") >= 0) {
9589
9440
  cleanValue = cleanValue.split(":")[0];
9590
9441
  }