
python.model_templates.enums.handlebars Maven / Gradle / Ivy
{{#with allowableValues}}
{{#each enumVars}}
@schemas.classproperty
def {{name}}(cls):
{{#eq value "schemas.NoneClass.NONE"}}
return cls(None)
{{else}}
{{#eq value "schemas.BoolClass.TRUE"}}
return cls(True)
{{else}}
{{#eq value "schemas.BoolClass.FALSE"}}
return cls(False)
{{else}}
return cls({{{value}}})
{{/eq}}
{{/eq}}
{{/eq}}
{{/each}}
{{/with}}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy