If your return format is: {"id":"<[email protected]>","message":"Queued. Thank you."}
.
Then you can define a return type of:
struct EmailType: Decodable {
var id: String
var message: String
}
struct Cloud: ParseCloud
{
typealias ReturnType = EmailType // This can also be a [String: String], but the struct is probably more useful. If it's a specific ParseObject being returned, that should be here.
var functionJobName: String
var arguments: [String : String] = [:] // The comments in the playground and in the API documentation says how to create this
}