Bridging PHP and Dart with Protocol Buffers: Notes on Seamless Model Generation

I have a backend service written in PHP and a client mobile app. I want to share the code of a model class that describes the payload of a push notification. How can this be done? Can I avoid code duplication? As you may already know, there’s no direct way to share code implmenetation bewteen a backend and a client app if the two are written in different languages. However, there are strategies you can employ to minimize code duplication....

August 7, 2023 · 6 min