1

I am making an app, which contains two basic classes let's say Class1 and Class2. And in Class1 I stored List<Class2> as attribute with other attributes. My question is how to store List<Class2> if I store some object of Class1 in sqflite database. Is there a way that I can store a List of Class2 objects in a single column of the database.

jastor_007
  • 371
  • 4
  • 14

1 Answers1

-1

You can serialize it to json and save the string. Then when you read it you can parse it back to an Object

Sebastian
  • 3,666
  • 2
  • 19
  • 32