This is part of a tutorial you can find at https://www.polydelic.com/media/autogenerating-a-rust-api-to-typescript-and-dart