4min chapter

Flying High with Flutter cover image

Dart_Mappable - Flying High with Flutter #113

Flying High with Flutter

CHAPTER

How to Use Generics to Serialize JSON

I wanted to go over back to the generic part because you made very particular about generics, right? Now generics is just difficult to handle when using like the serializable for JSON serializable or because it doesn't seem too tricky necessarily. I mean, maybe you can shed some light on that.Yeah, so the thing is with generics there are certain limitations that just, you won't get to work or at least like you have to find workarounds or like be very, it's quite complicated. So the one thing that is pretty much impossible is when you have a generic function and you pass a generic parameter. That could either be directly just the class, like decode animal

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode