commonMain.aws.sdk.kotlin.services.iotwireless.serde.LoRaWanServiceProfileDocumentSerializer.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.LoRaWanServiceProfile
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 serializeLoRaWanServiceProfileDocument(serializer: Serializer, input: LoRaWanServiceProfile) {
val ADDGWMETADATA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("AddGwMetadata"))
val DRMAX_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("DrMax"))
val DRMIN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("DrMin"))
val PRALLOWED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("PrAllowed"))
val RAALLOWED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("RaAllowed"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ADDGWMETADATA_DESCRIPTOR)
field(DRMAX_DESCRIPTOR)
field(DRMIN_DESCRIPTOR)
field(PRALLOWED_DESCRIPTOR)
field(RAALLOWED_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
if (input.addGwMetadata != false) field(ADDGWMETADATA_DESCRIPTOR, input.addGwMetadata)
input.drMin?.let { field(DRMIN_DESCRIPTOR, it) }
input.drMax?.let { field(DRMAX_DESCRIPTOR, it) }
if (input.prAllowed != false) field(PRALLOWED_DESCRIPTOR, input.prAllowed)
if (input.raAllowed != false) field(RAALLOWED_DESCRIPTOR, input.raAllowed)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy