commonMain.aws.sdk.kotlin.services.iotwireless.serde.CellTowersDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotwireless-jvm Show documentation
Show all versions of iotwireless-jvm Show documentation
The AWS Kotlin client for IoT Wireless
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotwireless.serde
import aws.sdk.kotlin.services.iotwireless.model.CellTowers
import aws.smithy.kotlin.runtime.serde.SdkFieldDescriptor
import aws.smithy.kotlin.runtime.serde.SdkObjectDescriptor
import aws.smithy.kotlin.runtime.serde.SerialKind
import aws.smithy.kotlin.runtime.serde.Serializer
import aws.smithy.kotlin.runtime.serde.asSdkSerializable
import aws.smithy.kotlin.runtime.serde.deserializeList
import aws.smithy.kotlin.runtime.serde.deserializeMap
import aws.smithy.kotlin.runtime.serde.deserializeStruct
import aws.smithy.kotlin.runtime.serde.field
import aws.smithy.kotlin.runtime.serde.json.JsonDeserializer
import aws.smithy.kotlin.runtime.serde.json.JsonSerialName
import aws.smithy.kotlin.runtime.serde.serializeList
import aws.smithy.kotlin.runtime.serde.serializeMap
import aws.smithy.kotlin.runtime.serde.serializeStruct
internal fun serializeCellTowersDocument(serializer: Serializer, input: CellTowers) {
val CDMA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("Cdma"))
val GSM_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("Gsm"))
val LTE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("Lte"))
val TDSCDMA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("Tdscdma"))
val WCDMA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("Wcdma"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(CDMA_DESCRIPTOR)
field(GSM_DESCRIPTOR)
field(LTE_DESCRIPTOR)
field(TDSCDMA_DESCRIPTOR)
field(WCDMA_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
if (input.gsm != null) {
listField(GSM_DESCRIPTOR) {
for (el0 in input.gsm) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeGsmObjDocument))
}
}
}
if (input.wcdma != null) {
listField(WCDMA_DESCRIPTOR) {
for (el0 in input.wcdma) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeWcdmaObjDocument))
}
}
}
if (input.tdscdma != null) {
listField(TDSCDMA_DESCRIPTOR) {
for (el0 in input.tdscdma) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeTdscdmaObjDocument))
}
}
}
if (input.lte != null) {
listField(LTE_DESCRIPTOR) {
for (el0 in input.lte) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeLteObjDocument))
}
}
}
if (input.cdma != null) {
listField(CDMA_DESCRIPTOR) {
for (el0 in input.cdma) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeCdmaObjDocument))
}
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy