//
// Generated by SwagGen
// https://github.com/yonaskolb/SwagGen
//

import Foundation

public class SendActivationCodeRequestEntity: APIModel {

    public var regPckAlias: String

    public var shortCode: String

    public init(regPckAlias: String, shortCode: String) {
        self.regPckAlias = regPckAlias
        self.shortCode = shortCode
    }

    public required init(from decoder: Decoder) throws {
        let container = try decoder.container(keyedBy: StringCodingKey.self)

        regPckAlias = try container.decode("regPckAlias")
        shortCode = try container.decode("shortCode")
    }

    public func encode(to encoder: Encoder) throws {
        var container = encoder.container(keyedBy: StringCodingKey.self)

        try container.encode(regPckAlias, forKey: "regPckAlias")
        try container.encode(shortCode, forKey: "shortCode")
    }

    public func isEqual(to object: Any?) -> Bool {
      guard let object = object as? SendActivationCodeRequestEntity else { return false }
      guard self.regPckAlias == object.regPckAlias else { return false }
      guard self.shortCode == object.shortCode else { return false }
      return true
    }

    public static func == (lhs: SendActivationCodeRequestEntity, rhs: SendActivationCodeRequestEntity) -> Bool {
        return lhs.isEqual(to: rhs)
    }
}
