Skip to content

Feature request: fromName function in enum generated classes #192

Open
@lizjackson-toast

Description

@lizjackson-toast

When working with classes generated from enums, sometimes I have a string and I'd like to grab the corresponding object whose name matches that string. A fromName function within generated enum classes would be helpful so we don't have to write many-line when statements to match strings to their corresponding enum objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions