2min chapter

Flying High with Flutter cover image

Dart_Mappable - Flying High with Flutter #113

Flying High with Flutter

CHAPTER

How to Serialize a String Object

The URI is maybe a special case because while it has all the different properties, like you said, like the CMR and then the domain and then the path name and maybe the query and so on. When you serialize it, you don't really want that all that properties as like several properties, you just serialize it as like aURI string. So another example what I used was when you use the color class from Flutter, maybe you have some colors. You can define a custom member for the color class and then it's pretty much up to you what you want the serialized value of a color look like. But of course, like with other properties, you can do

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