# This file was generated by the Julia Swagger Code Generator
# Do not modify this file directly. Modify the swagger specification instead.


mutable struct StatusMessage <: SwaggerModel
    status::Any # spec type: Union{ Nothing, String } # spec name: status
    error::Any # spec type: Union{ Nothing, ErrorResponse } # spec name: error

    function StatusMessage(;status=nothing, error=nothing)
        o = new()
        validate_property(StatusMessage, Symbol("status"), status)
        setfield!(o, Symbol("status"), status)
        validate_property(StatusMessage, Symbol("error"), error)
        setfield!(o, Symbol("error"), error)
        o
    end
end # type StatusMessage

const _property_map_StatusMessage = Dict{Symbol,Symbol}(Symbol("status")=>Symbol("status"), Symbol("error")=>Symbol("error"))
const _property_types_StatusMessage = Dict{Symbol,String}(Symbol("status")=>"String", Symbol("error")=>"ErrorResponse")
Base.propertynames(::Type{ StatusMessage }) = collect(keys(_property_map_StatusMessage))
Swagger.property_type(::Type{ StatusMessage }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_StatusMessage[name]))}
Swagger.field_name(::Type{ StatusMessage }, property_name::Symbol) =  _property_map_StatusMessage[property_name]

function check_required(o::StatusMessage)
    true
end

function validate_property(::Type{ StatusMessage }, name::Symbol, val)
end
