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


mutable struct DeploymentWhatIf <: SwaggerModel
    location::Any # spec type: Union{ Nothing, String } # spec name: location
    properties::Any # spec type: Union{ Nothing, DeploymentWhatIfProperties } # spec name: properties

    function DeploymentWhatIf(;location=nothing, properties=nothing)
        o = new()
        validate_property(DeploymentWhatIf, Symbol("location"), location)
        setfield!(o, Symbol("location"), location)
        validate_property(DeploymentWhatIf, Symbol("properties"), properties)
        setfield!(o, Symbol("properties"), properties)
        o
    end
end # type DeploymentWhatIf

const _property_map_DeploymentWhatIf = Dict{Symbol,Symbol}(Symbol("location")=>Symbol("location"), Symbol("properties")=>Symbol("properties"))
const _property_types_DeploymentWhatIf = Dict{Symbol,String}(Symbol("location")=>"String", Symbol("properties")=>"DeploymentWhatIfProperties")
Base.propertynames(::Type{ DeploymentWhatIf }) = collect(keys(_property_map_DeploymentWhatIf))
Swagger.property_type(::Type{ DeploymentWhatIf }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_DeploymentWhatIf[name]))}
Swagger.field_name(::Type{ DeploymentWhatIf }, property_name::Symbol) =  _property_map_DeploymentWhatIf[property_name]

function check_required(o::DeploymentWhatIf)
    (getproperty(o, Symbol("properties")) === nothing) && (return false)
    true
end

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