//
// ApiResponse.swift
//
// Generated by swagger-codegen
// https://github.com/swagger-api/swagger-codegen
//

import Foundation


open class ApiResponse: JSONEncodable {

    public var code: Int32?
    public var type: String?
    public var message: String?


    public init(code: Int32?=nil, type: String?=nil, message: String?=nil) {
        self.code = code
        self.type = type
        self.message = message
    }
    // MARK: JSONEncodable
    open func encodeToJSON() -> Any {
        var nillableDictionary = [String:Any?]()
        nillableDictionary["code"] = self.code?.encodeToJSON()
        nillableDictionary["type"] = self.type
        nillableDictionary["message"] = self.message

        let dictionary: [String:Any] = APIHelper.rejectNil(nillableDictionary) ?? [:]
        return dictionary
    }
}

