v2.2.0
refactor(Metadata): add support for flags in asJson method
This change updates the asJson method to accept a second parameter, $flags, to support additional JSON encoding options. This ensures compatibility with newer versions of Laravel while maintaining backward compatibility with older versions.