commonMain.aws.sdk.kotlin.services.iotwireless.serde.FPortsDocumentSerializer.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.FPorts
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 serializeFPortsDocument(serializer: Serializer, input: FPorts) {
val APPLICATIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("Applications"))
val CLOCKSYNC_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("ClockSync"))
val FUOTA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("Fuota"))
val MULTICAST_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("Multicast"))
val POSITIONING_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Positioning"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(APPLICATIONS_DESCRIPTOR)
field(CLOCKSYNC_DESCRIPTOR)
field(FUOTA_DESCRIPTOR)
field(MULTICAST_DESCRIPTOR)
field(POSITIONING_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.fuota?.let { field(FUOTA_DESCRIPTOR, it) }
input.multicast?.let { field(MULTICAST_DESCRIPTOR, it) }
input.clockSync?.let { field(CLOCKSYNC_DESCRIPTOR, it) }
input.positioning?.let { field(POSITIONING_DESCRIPTOR, it, ::serializePositioningDocument) }
if (input.applications != null) {
listField(APPLICATIONS_DESCRIPTOR) {
for (el0 in input.applications) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeApplicationConfigDocument))
}
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy