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


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

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

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

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

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