[ ] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[x] The correct base branch is being used, if not main
[x] I have added tests to validate that the change in functionality is working as expected
Description
Created a
getModulesFromJSON
function that takes a model and returns an alphabetically sorted array of all the modules in the model.References
closes #284
Review Checklist
main