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


mutable struct UpdateTrustedIdProviderWithAccountParameters <: SwaggerModel
    name::Any # spec type: Union{ Nothing, String } # spec name: name
    properties::Any # spec type: Union{ Nothing, UpdateTrustedIdProviderProperties } # spec name: properties

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

const _property_map_UpdateTrustedIdProviderWithAccountParameters = Dict{Symbol,Symbol}(Symbol("name")=>Symbol("name"), Symbol("properties")=>Symbol("properties"))
const _property_types_UpdateTrustedIdProviderWithAccountParameters = Dict{Symbol,String}(Symbol("name")=>"String", Symbol("properties")=>"UpdateTrustedIdProviderProperties")
Base.propertynames(::Type{ UpdateTrustedIdProviderWithAccountParameters }) = collect(keys(_property_map_UpdateTrustedIdProviderWithAccountParameters))
Swagger.property_type(::Type{ UpdateTrustedIdProviderWithAccountParameters }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_UpdateTrustedIdProviderWithAccountParameters[name]))}
Swagger.field_name(::Type{ UpdateTrustedIdProviderWithAccountParameters }, property_name::Symbol) =  _property_map_UpdateTrustedIdProviderWithAccountParameters[property_name]

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

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