toMap method
Returns the same {'bloc', 'riverpod', 'getx'} boolean map shape that
Mustache templates already depend on, so templates need no changes.
Implementation
Map<String, dynamic> toMap() {
return {
'bloc': layer == PresentationLayer.bloc,
'riverpod': layer == PresentationLayer.riverpod,
'getx': layer == PresentationLayer.getx,
};
}