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

import Foundation


public class InlineResponse200: JSONEncodable {

    public enum Status: String { 
        case Available = "available"
        case Pending = "pending"
        case Sold = "sold"
    }
    
    public var tags: [Tag]?
    public var id: Int?
    public var category: AnyObject?
    /** pet status in the store */
    public var status: Status?
    public var name: String?
    public var photoUrls: [String]?
    

    public init() {}

    // MARK: JSONEncodable
    func encodeToJSON() -> AnyObject {
        var nillableDictionary = [String:AnyObject?]()
        nillableDictionary["tags"] = self.tags?.encodeToJSON()
        nillableDictionary["id"] = self.id
        nillableDictionary["category"] = self.category
        nillableDictionary["status"] = self.status?.rawValue
        nillableDictionary["name"] = self.name
        nillableDictionary["photoUrls"] = self.photoUrls?.encodeToJSON()
        let dictionary: [String:AnyObject] = APIHelper.rejectNil(nillableDictionary) ?? [:]
        return dictionary
    }
}
