//
// BulkRecipientsRequest.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//

import AnyCodable
import Foundation
import Vapor

/**  */
public final class BulkRecipientsRequest: Content, Hashable {
    /** A complex type containing information about the bulk recipients in the request. */
    public var bulkRecipients: [BulkRecipient]?

    public init(bulkRecipients: [BulkRecipient]? = nil) {
        self.bulkRecipients = bulkRecipients
    }

    public enum CodingKeys: String, CodingKey, CaseIterable {
        case bulkRecipients
    }

    // Encodable protocol methods

    public func encode(to encoder: Encoder) throws {
        var container = encoder.container(keyedBy: CodingKeys.self)
        try container.encodeIfPresent(bulkRecipients, forKey: .bulkRecipients)
    }

    public static func == (lhs: BulkRecipientsRequest, rhs: BulkRecipientsRequest) -> Bool {
        lhs.bulkRecipients == rhs.bulkRecipients
    }

    public func hash(into hasher: inout Hasher) {
        hasher.combine(bulkRecipients?.hashValue)
    }
}
