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

import Foundation


open class PipelineStepImpl: JSONEncodable {

    public var _class: String?
    public var links: PipelineStepImpllinks?
    public var displayName: String?
    public var durationInMillis: Int32?
    public var id: String?
    public var input: InputStepImpl?
    public var result: String?
    public var startTime: String?
    public var state: String?

    public init() {}

    // MARK: JSONEncodable
    open func encodeToJSON() -> Any {
        var nillableDictionary = [String:Any?]()
        nillableDictionary["_class"] = self._class
        nillableDictionary["_links"] = self.links?.encodeToJSON()
        nillableDictionary["displayName"] = self.displayName
        nillableDictionary["durationInMillis"] = self.durationInMillis?.encodeToJSON()
        nillableDictionary["id"] = self.id
        nillableDictionary["input"] = self.input?.encodeToJSON()
        nillableDictionary["result"] = self.result
        nillableDictionary["startTime"] = self.startTime
        nillableDictionary["state"] = self.state

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

