mapBuilder function

Builder mapBuilder (
  1. BuilderOptions options
)

Builder calling the method generate on a MapGenerator instance. MapGenerator processes classes annotated with @GenerateValueMap. It generates an unmodifiable Map instance mapping each GenericEnum value to the static const GenericEnum instance with that value.

Implementation

Builder mapBuilder(BuilderOptions options) =>
    SharedPartBuilder([MapGenerator()], 'map_builder');