
commonMain.aws.sdk.kotlin.services.groundstation.serde.AntennaDownlinkDemodDecodeConfigDocumentDeserializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.groundstation.serde
import aws.sdk.kotlin.services.groundstation.model.AntennaDownlinkDemodDecodeConfig
import aws.smithy.kotlin.runtime.serde.Deserializer
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.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 deserializeAntennaDownlinkDemodDecodeConfigDocument(deserializer: Deserializer): AntennaDownlinkDemodDecodeConfig {
val builder = AntennaDownlinkDemodDecodeConfig.Builder()
val DECODECONFIG_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("decodeConfig"))
val DEMODULATIONCONFIG_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("demodulationConfig"))
val SPECTRUMCONFIG_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("spectrumConfig"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(DECODECONFIG_DESCRIPTOR)
field(DEMODULATIONCONFIG_DESCRIPTOR)
field(SPECTRUMCONFIG_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
DECODECONFIG_DESCRIPTOR.index -> builder.decodeConfig = deserializeDecodeConfigDocument(deserializer)
DEMODULATIONCONFIG_DESCRIPTOR.index -> builder.demodulationConfig = deserializeDemodulationConfigDocument(deserializer)
SPECTRUMCONFIG_DESCRIPTOR.index -> builder.spectrumConfig = deserializeSpectrumConfigDocument(deserializer)
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy