Flutter Hive: TypeAdapter vs saving as json string?

Viewed 157

I have learned that with hive database in flutter it is possible to store custom objects as json strings. And then there is the option to write a custom type adapter that stores the data in binary format.

So, why it could be needed to spend more time and implement a type adapter when developer can just store the custom object in json string format?

0 Answers
Related