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

import Foundation

public class UpdateSecureTokenFriendlyNameRequestEntity: APIModel {

    public var tknName: String?

    public init(tknName: String? = nil) {
        self.tknName = tknName
    }

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

        tknName = try container.decodeIfPresent("tknName")
    }

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

        try container.encodeIfPresent(tknName, forKey: "tknName")
    }

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

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