commonMain.email.service.EmailRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of KSend Show documentation
Show all versions of KSend Show documentation
A description of what my library does.
package email.service
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class EmailRequest(
@SerialName("personalizations")
val personalizations: List,
@SerialName("from")
val from: Sender,
@SerialName("subject")
val subject: String,
@SerialName("content")
val content: List
)
@Serializable
data class Personalization(
@SerialName("to")
val to: List
)
@Serializable
data class Recipient(
@SerialName("email")
val email: String
)
@Serializable
data class Sender(
@SerialName("email")
val email: String
)
@Serializable
data class Content(
@SerialName("type")
val type: String,
@SerialName("value")
val value: String
)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy