All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.email.service.EmailRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
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