How do I get a serializer for a typed List? I can'...
# serialization
m
How do I get a serializer for a typed List? I can't find it in the documentation.
List<MyType>.serializer()
obviously doesn't work.
Found it:
ListSerializer(MyType.serializer())
Would be nice if it was in the Readme.
n
MyType.serlaizer().list
is generally what people use
e
Not in the 1.0 milestone version (where it is deprecated in favor of
ListSerializer(...)
factory function)
👍 1
j
I was just about to ask the same question,
.serializer().list
is deprecated